$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 'horizontal':
      final _horizontal = $value.horizontal;
      return $double(_horizontal);

    case 'vertical':
      final _vertical = $value.vertical;
      return $double(_vertical);

    case 'baseSizeAdjustment':
      final _baseSizeAdjustment = $value.baseSizeAdjustment;
      return $Offset.wrap(_baseSizeAdjustment);
    case 'copyWith':
      return __copyWith;

    case 'effectiveConstraints':
      return __effectiveConstraints;

    case 'debugFillProperties':
      return __debugFillProperties;

    case 'toStringShort':
      return __toStringShort;
  }
  return _superclass.$getProperty(runtime, identifier);
}