$getProperty method
Get a property by identifier
on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case 'iterator':
return $Iterator.wrap($value.iterator);
case 'length':
return $int($value.length);
case 'isEmpty':
return $bool($value.isEmpty);
case 'isNotEmpty':
return $bool($value.isNotEmpty);
case 'first':
return $value.first as $Value?;
case 'last':
return $value.last as $Value?;
case 'single':
return $value.single as $Value?;
case 'cast':
return __$cast;
case 'followedBy':
return __$followedBy;
case 'map':
return __$map;
case 'where':
return __$where;
case 'whereType':
return __$whereType;
case 'expand':
return __$expand;
case 'contains':
return __$contains;
case 'forEach':
return __$forEach;
case 'reduce':
return __$reduce;
case 'fold':
return __$fold;
case 'every':
return __$every;
case 'join':
return __$join;
case 'any':
return __$any;
case 'toList':
return __$toList;
case 'toSet':
return __$toSet;
case 'take':
return __$take;
case 'takeWhile':
return __$takeWhile;
case 'skip':
return __$skip;
case 'skipWhile':
return __$skipWhile;
case 'firstWhere':
return __$firstWhere;
case 'lastWhere':
return __$lastWhere;
case 'singleWhere':
return __$singleWhere;
case 'elementAt':
return __$elementAt;
default:
return _superclass.$getProperty(runtime, identifier);
}
}