📜  dart 从字符串中解析布尔值 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:05.927000             🧑  作者: Mango

代码示例1
QUESTION: dart parse boolean from string
// there is no method for parsing

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