$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 'inherit':
      return $bool($value.inherit);
    case 'color':
      return $value.color == null
          ? const $null()
          : $Color.wrap($value.color!);
    case 'backgroundColor':
      return $value.backgroundColor == null
          ? const $null()
          : $Color.wrap($value.backgroundColor!);
    case 'fontFamily':
      return $value.fontFamily == null
          ? const $null()
          : $String($value.fontFamily!);
    case 'fontSize':
      return $value.fontSize == null
          ? const $null()
          : $double($value.fontSize!);
    case 'fontWeight':
      return $value.fontWeight == null
          ? const $null()
          : $FontWeight.wrap($value.fontWeight!);
    case 'fontStyle':
      return $value.fontStyle == null
          ? const $null()
          : $FontStyle.wrap($value.fontStyle!);
    case 'letterSpacing':
      return $value.letterSpacing == null
          ? const $null()
          : $double($value.letterSpacing!);
    case 'wordSpacing':
      return $value.wordSpacing == null
          ? const $null()
          : $double($value.wordSpacing!);
    case 'textBaseline':
      return $value.textBaseline == null
          ? const $null()
          : $TextBaseline.wrap($value.textBaseline!);
    case 'height':
      return $value.height == null ? const $null() : $double($value.height!);
    case 'locale':
      return $value.locale == null
          ? const $null()
          : $Locale.wrap($value.locale!);
    case 'decorationColor':
      return $value.decorationColor == null
          ? const $null()
          : $Color.wrap($value.decorationColor!);
    case 'decorationThickness':
      return $value.decorationThickness == null
          ? const $null()
          : $double($value.decorationThickness!);
    case 'debugLabel':
      return $value.debugLabel == null
          ? const $null()
          : $String($value.debugLabel!);
    case 'hashCode':
      return $int($value.hashCode);
    case 'copyWith':
      return __copyWith;
    case 'apply':
      return __apply;
    case 'merge':
      return __merge;
    case 'getTextStyle':
      return __getTextStyle;
    case 'getParagraphStyle':
      return __getParagraphStyle;
    case 'compareTo':
      return __compareTo;
    case 'toStringShort':
      return __toStringShort;
    case 'debugFillProperties':
      return __debugFillProperties;
  }
  throw UnimplementedError(
      'property $identifier not generated for TextStyle');
}