Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter check if string contains only number

final b = RegExp(r'^[0-9]+$').hasMatch(s);
Source by programming-idioms.org #
 
PREVIOUS NEXT
Tagged: #flutter #check #string #number
ADD COMMENT
Topic
Name
7+1 =