isNumeric function

bool isNumeric(
  1. String s
)

Implementation

bool isNumeric(String s) => s.isNotEmpty && double.tryParse(s) != null;