m method
获取 value 转 bool
Implementation
Map m(String key, {Map defaultValue = const {}, bool showLog = true}) {
if (!containsKey(key)) {
_log('当前map不存在 key:[$key]', showLog);
return defaultValue;
}
final value = this[key];
if (value is Map) return value;
_log('${value.runtimeType} [$key]=$value => map:$defaultValue', showLog);
return defaultValue;
}