$getProperty method
Get a property by identifier on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case 'iconSize':
return $value.iconSize == null
? const $null()
: $double($value.iconSize!);
case 'visualDensity':
return $value.visualDensity == null
? const $null()
: $VisualDensity.wrap($value.visualDensity!);
case 'padding':
return $value.padding == null
? const $null()
: $EdgeInsetsGeometry.wrap($value.padding!);
case 'alignment':
return $value.alignment == null
? const $null()
: $AlignmentGeometry.wrap($value.alignment!);
case 'splashRadius':
return $value.splashRadius == null
? const $null()
: $double($value.splashRadius!);
case 'icon':
return $Widget.wrap($value.icon);
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 'color':
return $value.color == null
? const $null()
: $Color.wrap($value.color!);
case 'splashColor':
return $value.splashColor == null
? const $null()
: $Color.wrap($value.splashColor!);
case 'highlightColor':
return $value.highlightColor == null
? const $null()
: $Color.wrap($value.highlightColor!);
case 'disabledColor':
return $value.disabledColor == null
? const $null()
: $Color.wrap($value.disabledColor!);
case 'focusNode':
return $value.focusNode == null
? const $null()
: $FocusNode.wrap($value.focusNode!);
case 'autofocus':
return $bool($value.autofocus);
case 'tooltip':
return $value.tooltip == null
? const $null()
: $String($value.tooltip!);
case 'enableFeedback':
return $value.enableFeedback == null
? const $null()
: $bool($value.enableFeedback!);
case 'constraints':
return $value.constraints == null
? const $null()
: $BoxConstraints.wrap($value.constraints!);
case 'style':
return $value.style == null
? const $null()
: $ButtonStyle.wrap($value.style!);
case 'isSelected':
return $value.isSelected == null
? const $null()
: $bool($value.isSelected!);
case 'selectedIcon':
return $value.selectedIcon == null
? const $null()
: $Widget.wrap($value.selectedIcon!);
case 'statesController':
return $value.statesController == null
? const $null()
: $WidgetStatesController.wrap($value.statesController!);
case 'build':
return __build;
case 'debugFillProperties':
return __debugFillProperties;
}
throw UnimplementedError(
'property $identifier not generated for IconButton');
}