Answers for "dart parse boolean from string"

2

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';
Posted by: Guest on November-18-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language