$getProperty method
Get a property by identifier on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case 'textStyle':
return $value.textStyle == null
? const $null()
: $WidgetStateProperty.wrap($value.textStyle!);
case 'backgroundColor':
return $value.backgroundColor == null
? const $null()
: $WidgetStateProperty.wrap($value.backgroundColor!);
case 'foregroundColor':
return $value.foregroundColor == null
? const $null()
: $WidgetStateProperty.wrap($value.foregroundColor!);
case 'overlayColor':
return $value.overlayColor == null
? const $null()
: $WidgetStateProperty.wrap($value.overlayColor!);
case 'shadowColor':
return $value.shadowColor == null
? const $null()
: $WidgetStateProperty.wrap($value.shadowColor!);
case 'surfaceTintColor':
return $value.surfaceTintColor == null
? const $null()
: $WidgetStateProperty.wrap($value.surfaceTintColor!);
case 'elevation':
return $value.elevation == null
? const $null()
: $WidgetStateProperty.wrap($value.elevation!);
case 'padding':
return $value.padding == null
? const $null()
: $WidgetStateProperty.wrap($value.padding!);
case 'minimumSize':
return $value.minimumSize == null
? const $null()
: $WidgetStateProperty.wrap($value.minimumSize!);
case 'fixedSize':
return $value.fixedSize == null
? const $null()
: $WidgetStateProperty.wrap($value.fixedSize!);
case 'maximumSize':
return $value.maximumSize == null
? const $null()
: $WidgetStateProperty.wrap($value.maximumSize!);
case 'iconColor':
return $value.iconColor == null
? const $null()
: $WidgetStateProperty.wrap($value.iconColor!);
case 'iconSize':
return $value.iconSize == null
? const $null()
: $WidgetStateProperty.wrap($value.iconSize!);
case 'iconAlignment':
return $value.iconAlignment == null
? const $null()
: $IconAlignment.wrap($value.iconAlignment!);
case 'side':
return $value.side == null
? const $null()
: $WidgetStateProperty.wrap($value.side!);
case 'shape':
return $value.shape == null
? const $null()
: $WidgetStateProperty.wrap($value.shape!);
case 'mouseCursor':
return $value.mouseCursor == null
? const $null()
: $WidgetStateProperty.wrap($value.mouseCursor!);
case 'visualDensity':
return $value.visualDensity == null
? const $null()
: $VisualDensity.wrap($value.visualDensity!);
case 'tapTargetSize':
return $value.tapTargetSize == null
? const $null()
: $MaterialTapTargetSize.wrap($value.tapTargetSize!);
case 'animationDuration':
return $value.animationDuration == null
? const $null()
: $Duration.wrap($value.animationDuration!);
case 'enableFeedback':
return $value.enableFeedback == null
? const $null()
: $bool($value.enableFeedback!);
case 'alignment':
return $value.alignment == null
? const $null()
: $AlignmentGeometry.wrap($value.alignment!);
case 'hashCode':
return $int($value.hashCode);
case 'copyWith':
return __copyWith;
case 'merge':
return __merge;
case 'debugFillProperties':
return __debugFillProperties;
}
throw UnimplementedError(
'property $identifier not generated for ButtonStyle');
}