$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 'child':
      return $value.child == null
          ? const $null()
          : $Widget.wrap($value.child!);
    case 'tooltip':
      return $value.tooltip == null
          ? const $null()
          : $String($value.tooltip!);
    case 'foregroundColor':
      return $value.foregroundColor == null
          ? const $null()
          : $Color.wrap($value.foregroundColor!);
    case 'backgroundColor':
      return $value.backgroundColor == null
          ? const $null()
          : $Color.wrap($value.backgroundColor!);
    case 'focusColor':
      return $value.focusColor == null
          ? const $null()
          : $Color.wrap($value.focusColor!);
    case 'hoverColor':
      return $value.hoverColor == null
          ? const $null()
          : $Color.wrap($value.hoverColor!);
    case 'splashColor':
      return $value.splashColor == null
          ? const $null()
          : $Color.wrap($value.splashColor!);
    case 'elevation':
      return $value.elevation == null
          ? const $null()
          : $double($value.elevation!);
    case 'focusElevation':
      return $value.focusElevation == null
          ? const $null()
          : $double($value.focusElevation!);
    case 'hoverElevation':
      return $value.hoverElevation == null
          ? const $null()
          : $double($value.hoverElevation!);
    case 'highlightElevation':
      return $value.highlightElevation == null
          ? const $null()
          : $double($value.highlightElevation!);
    case 'disabledElevation':
      return $value.disabledElevation == null
          ? const $null()
          : $double($value.disabledElevation!);
    case 'mini':
      return $bool($value.mini);
    case 'shape':
      return $value.shape == null
          ? const $null()
          : $ShapeBorder.wrap($value.shape!);
    case 'clipBehavior':
      return $Clip.wrap($value.clipBehavior);
    case 'isExtended':
      return $bool($value.isExtended);
    case 'focusNode':
      return $value.focusNode == null
          ? const $null()
          : $FocusNode.wrap($value.focusNode!);
    case 'autofocus':
      return $bool($value.autofocus);
    case 'materialTapTargetSize':
      return $value.materialTapTargetSize == null
          ? const $null()
          : $MaterialTapTargetSize.wrap($value.materialTapTargetSize!);
    case 'enableFeedback':
      return $value.enableFeedback == null
          ? const $null()
          : $bool($value.enableFeedback!);
    case 'extendedIconLabelSpacing':
      return $value.extendedIconLabelSpacing == null
          ? const $null()
          : $double($value.extendedIconLabelSpacing!);
    case 'extendedPadding':
      return $value.extendedPadding == null
          ? const $null()
          : $EdgeInsetsGeometry.wrap($value.extendedPadding!);
    case 'extendedTextStyle':
      return $value.extendedTextStyle == null
          ? const $null()
          : $TextStyle.wrap($value.extendedTextStyle!);
    case 'build':
      return __build;
    case 'debugFillProperties':
      return __debugFillProperties;
  }
  throw UnimplementedError(
      'property $identifier not generated for FloatingActionButton');
}