isMap property
bool
isMap
Determine whether the current instance is a Map.
Can be called in the following ways,
{ 'k': 2 }.isMap
{ 'k': 2 }.runtimeType.isMap
Implementation
bool get isMap {
if (this is Type) {
return toString().contains('Map');
} else {
return this is Map;
}
}