$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 'cancel':
      return __cancel;
    case 'asFuture':
      return __asFuture;
    case 'pause':
      return __pause;
    case 'resume':
      return __resume;
    case 'onDone':
      return __onDone;
    case 'onError':
      return __onError;
    case 'isPaused':
      return $bool($value.isPaused);
  }
  return _superclass.$getProperty(runtime, identifier);
}