-2 works

Check if a string is numeric


dashboard

Posted by @bassel #dart #flutter

bool _isNumeric(String str) {
  if(str == null) {
    return false;
  }
  return double.tryParse(str) != null;
}
content_copy

>> Browse more code snippets

more_vert