decodeString method

  1. @override
BigInt decodeString(
  1. String string
)
override

Decodes string to an instance of T.

Implementation

@override
BigInt decodeString(String string) {
  final bigIntValue = BigInt.tryParse(string);
  if (bigIntValue != null) {
    return bigIntValue;
  }
  throw ArgumentError.value(string);
}