tryAsBigInt method

  1. @override
BigInt? tryAsBigInt()
override

This value as a BigInt value or null if cannot be converted to BigInt.

Implementation

@override
BigInt? tryAsBigInt() {
  try {
    return asBigInt();
  } on Exception {
    return null;
  }
}