Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart parse boolean from string

QUESTION: dart parse boolean from string
// there is no method for parsing

ANSWER:
var val = 'True';
bool b = val.toLowerCase() == 'true';
 
PREVIOUS NEXT
Tagged: #dart #parse #boolean #string
ADD COMMENT
Topic
Name
6+1 =