$getProperty method
Get a property by identifier on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case 'textTheme':
return $value.textTheme == null
? const $null()
: $ButtonTextTheme.wrap($value.textTheme!);
case 'textColor':
return $value.textColor == null
? const $null()
: $Color.wrap($value.textColor!);
case 'disabledTextColor':
return $value.disabledTextColor == null
? const $null()
: $Color.wrap($value.disabledTextColor!);
case 'color':
return $value.color == null
? const $null()
: $Color.wrap($value.color!);
case 'disabledColor':
return $value.disabledColor == null
? const $null()
: $Color.wrap($value.disabledColor!);
case 'splashColor':
return $value.splashColor == null
? const $null()
: $Color.wrap($value.splashColor!);
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 'highlightColor':
return $value.highlightColor == null
? const $null()
: $Color.wrap($value.highlightColor!);
case 'elevation':
return $value.elevation == null
? const $null()
: $double($value.elevation!);
case 'hoverElevation':
return $value.hoverElevation == null
? const $null()
: $double($value.hoverElevation!);
case 'focusElevation':
return $value.focusElevation == null
? const $null()
: $double($value.focusElevation!);
case 'highlightElevation':
return $value.highlightElevation == null
? const $null()
: $double($value.highlightElevation!);
case 'disabledElevation':
return $value.disabledElevation == null
? const $null()
: $double($value.disabledElevation!);
case 'child':
return $value.child == null
? const $null()
: $Widget.wrap($value.child!);
case 'enabled':
return $bool($value.enabled);
case 'padding':
return $value.padding == null
? const $null()
: $EdgeInsetsGeometry.wrap($value.padding!);
case 'visualDensity':
return $value.visualDensity == null
? const $null()
: $VisualDensity.wrap($value.visualDensity!);
case 'shape':
return $value.shape == null
? const $null()
: $ShapeBorder.wrap($value.shape!);
case 'clipBehavior':
return $Clip.wrap($value.clipBehavior);
case 'focusNode':
return $value.focusNode == null
? const $null()
: $FocusNode.wrap($value.focusNode!);
case 'autofocus':
return $bool($value.autofocus);
case 'animationDuration':
return $value.animationDuration == null
? const $null()
: $Duration.wrap($value.animationDuration!);
case 'materialTapTargetSize':
return $value.materialTapTargetSize == null
? const $null()
: $MaterialTapTargetSize.wrap($value.materialTapTargetSize!);
case 'minWidth':
return $value.minWidth == null
? const $null()
: $double($value.minWidth!);
case 'height':
return $value.height == null ? const $null() : $double($value.height!);
case 'enableFeedback':
return $bool($value.enableFeedback);
case 'build':
return __build;
case 'debugFillProperties':
return __debugFillProperties;
}
throw UnimplementedError(
'property $identifier not generated for MaterialButton');
}