Dart Parse Boolean z String

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

ANSWER:
var val = 'True';
bool b = val.toLowerCase() == 'true';
Bole