isDecimal static method

bool isDecimal(
  1. String string
)

Implementation

static bool isDecimal(String string) {
  if (noString(string)) {
    return false;
  }
  return double.tryParse(string) != null;
}