getBoolFromArguments static method
Implementation
static bool? getBoolFromArguments(
Map<String, dynamic> arguments, String key) {
bool? boolValue;
if (arguments[key] != null) {
if (arguments[key] is String) {
if (arguments[key] == "true") {
boolValue = true;
} else if (arguments[key] == "false") {
boolValue = false;
}
} else {
boolValue = arguments[key];
}
}
return boolValue;
}