tryParse static method

BigDecimal? tryParse(
  1. String value
)

Implementation

static BigDecimal? tryParse(String value) {
  try {
    return BigDecimal.parse(value);
  } catch (e) {
    return null;
  }
}