$getProperty method

  1. @override
$Value? $getProperty(
  1. Runtime runtime,
  2. String identifier
)
override

Get a property by identifier on this instance

Implementation

@override
$Value? $getProperty(Runtime runtime, String identifier) {
  switch (identifier) {
    case 'first':
      return $value.first as $Value;
    case 'last':
      return $value.last as $Value;
    case 'length':
      return $Future.wrap((() async => $int(await $value.length))());
    case 'single':
      return $value.single as $Value;
    case 'isBroadcast':
      return $bool($value.isBroadcast);
    case 'asBroadcastStream':
      return __asBroadcastStream;
    case 'asyncExpand':
      return __asyncExpand;
    case 'asyncMap':
      return __asyncMap;
    case 'cast':
      return __cast;
    case 'contains':
      return __contains;
    case 'distinct':
      return __distinct;
    case 'drain':
      return __drain;
    case 'elementAt':
      return __elementAt;
    case 'every':
      return __every;
    case 'expand':
      return __expand;
    case 'firstWhere':
      return __firstWhere;
    case 'fold':
      return __fold;
    case 'forEach':
      return __forEach;
    case 'handleError':
      return __handleError;
    case 'join':
      return __join;
    case 'lastWhere':
      return __lastWhere;
    case 'listen':
      return __listen;
    case 'map':
      return __map;
    /*case 'pipe':
      return __pipe;*/
    case 'reduce':
      return __reduce;
    case 'singleWhere':
      return __singleWhere;
    case 'skip':
      return __skip;
    case 'transform':
      return __transform;
    default:
      return _superclass.$getProperty(runtime, identifier);
  }
}