$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 'top':
      return $BorderSide.wrap($value.top);
    case 'bottom':
      return $BorderSide.wrap($value.bottom);
    case 'isUniform':
      return $bool($value.isUniform);
    case 'preferPaintInterior':
      return $bool($value.preferPaintInterior);
    case 'add':
      return __add;
    case 'getInnerPath':
      return __getInnerPath;
    case 'getOuterPath':
      return __getOuterPath;
    case 'paintInterior':
      return __paintInterior;
    case 'paint':
      return __paint;
  }
  throw UnimplementedError(
      'property $identifier not generated for BoxBorder');
}