$getProperty method
Get a property by identifier on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case 'style':
return $value.style == null
? const $null()
: $ButtonStyle.wrap($value.style!);
case 'clipBehavior':
return $value.clipBehavior == null
? const $null()
: $Clip.wrap($value.clipBehavior!);
case 'focusNode':
return $value.focusNode == null
? const $null()
: $FocusNode.wrap($value.focusNode!);
case 'autofocus':
return $bool($value.autofocus);
case 'statesController':
return $value.statesController == null
? const $null()
: $WidgetStatesController.wrap($value.statesController!);
case 'isSemanticButton':
return $value.isSemanticButton == null
? const $null()
: $bool($value.isSemanticButton!);
case 'iconAlignment':
return $value.iconAlignment == null
? const $null()
: $IconAlignment.wrap($value.iconAlignment!);
case 'tooltip':
return $value.tooltip == null
? const $null()
: $String($value.tooltip!);
case 'child':
return $value.child == null
? const $null()
: $Widget.wrap($value.child!);
case 'enabled':
return $bool($value.enabled);
case 'createState':
return __createState;
case 'debugFillProperties':
return __debugFillProperties;
}
throw UnimplementedError(
'property $identifier not generated for ButtonStyleButton');
}