methods static method
Implementation
static Map<String, Function> methods(dynamic val) {
if (val == null) {
return {};
} else if (val is Invokable) {
return val.methods();
} else if (val is String) {
return _String.methods(val);
} else if (val is bool) {
return _Boolean.methods(val);
} else if (val is num) {
return _Number.methods(val);
} else if (val is Map) {
return _Map.methods(val);
} else if (val is List) {
return _List.methods(val);
} else if (val is RegExp) {
return _RegExp.methods(val);
}
return {};
}