dart analyse booléenne de la chaîne

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

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