isNumericFloat static method

bool isNumericFloat(
  1. String s
)

Numeric only but '' return true

Implementation

static bool isNumericFloat(String s) => hasMatch(
    s, r'^(?:-?(?:[0-9]+))?(?:\.[0-9]*)?(?:[eE][\+\-]?(?:[0-9]+))?$');