1 works

Check if a string is numeric


dashboard+ Project

Posted by @bassel #dart #flutter

Code snippet:

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

>> Browse more code snippets

more_vert