$getProperty method
Get a property by identifier
on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case '[]':
return __indexGet;
case '[]=':
return __indexSet;
case 'addAll':
return __addAll;
case 'cast':
return __cast;
case 'length':
return $int($value.length);
case 'containsKey':
return __containsKey;
case 'remove':
return __remove;
case 'entries':
return $Iterable.wrap(entries.map((e) => $MapEntry.wrap(e)));
case 'isEmpty':
return $bool($value.isEmpty);
case 'isNotEmpty':
return $bool($value.isNotEmpty);
}
return _superclass.$getProperty(runtime, identifier);
}