$getProperty method

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

Get a property by identifier on this instance

Implementation

@override
$Value? $getProperty(Runtime runtime, String identifier) {
  switch (identifier) {
    case 'initialScrollOffset':
      return $double($value.initialScrollOffset);
    case 'keepScrollOffset':
      return $bool($value.keepScrollOffset);
    case 'debugLabel':
      return $value.debugLabel == null
          ? const $null()
          : $String($value.debugLabel!);
    case 'hasClients':
      return $bool($value.hasClients);
    case 'offset':
      return $double($value.offset);
    case 'animateTo':
      return __animateTo;
    case 'jumpTo':
      return __jumpTo;
    case 'attach':
      return __attach;
    case 'detach':
      return __detach;
    case 'dispose':
      return __dispose;
    case 'createScrollPosition':
      return __createScrollPosition;
    case 'toString':
      return __toString;
    case 'debugFillDescription':
      return __debugFillDescription;
  }
  throw UnimplementedError(
      'property $identifier not generated for ScrollController');
}