isNumeric function

bool isNumeric(
  1. String s
)

Helper

Implementation

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