NPSF3000
0
Q:

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';
1

New to Communities?

Join the community