$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 'isNonNegative':
      return $bool($value.isNonNegative);
    case 'horizontal':
      return $double($value.horizontal);
    case 'vertical':
      return $double($value.vertical);
    case 'collapsedSize':
      return $Size.wrap($value.collapsedSize);
    case 'flipped':
      return $EdgeInsetsGeometry.wrap($value.flipped);
    case 'hashCode':
      return $int($value.hashCode);
    case 'along':
      return __along;
    case 'inflateSize':
      return __inflateSize;
    case 'deflateSize':
      return __deflateSize;
    case 'subtract':
      return __subtract;
    case 'add':
      return __add;
    case 'clamp':
      return __clamp;
    case 'resolve':
      return __resolve;
    case 'toString':
      return __toString;
  }
  throw UnimplementedError(
      'property $identifier not generated for EdgeInsetsGeometry');
}