Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter check if string is number

bool isNumeric(String s) {
 if (s == null) {
   return false;
 }
 return double.tryParse(s) != null;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #check #string #number
ADD COMMENT
Topic
Name
4+9 =