tryParse static method
Implementation
static Decimal? tryParse(String s,
{int? precision, String decimalDelimiter = '.'}) {
if (s.isEmpty) return null;
try {
return Decimal.parse(s,
precision: precision, decimalDelimiter: decimalDelimiter);
} on FormatException {
return null;
}
}