$getProperty method
Get a property by identifier
on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case 'textStyle':
final _textStyle = $value.textStyle;
return _textStyle == null
? const $null()
: $WidgetStateProperty.wrap(_textStyle);
case 'backgroundColor':
final _backgroundColor = $value.backgroundColor;
return _backgroundColor == null
? const $null()
: $WidgetStateProperty.wrap(_backgroundColor);
case 'foregroundColor':
final _foregroundColor = $value.foregroundColor;
return _foregroundColor == null
? const $null()
: $WidgetStateProperty.wrap(_foregroundColor);
case 'overlayColor':
final _overlayColor = $value.overlayColor;
return _overlayColor == null
? const $null()
: $WidgetStateProperty.wrap(_overlayColor);
case 'shadowColor':
final _shadowColor = $value.shadowColor;
return _shadowColor == null
? const $null()
: $WidgetStateProperty.wrap(_shadowColor);
case 'surfaceTintColor':
final _surfaceTintColor = $value.surfaceTintColor;
return _surfaceTintColor == null
? const $null()
: $WidgetStateProperty.wrap(_surfaceTintColor);
case 'elevation':
final _elevation = $value.elevation;
return _elevation == null
? const $null()
: $WidgetStateProperty.wrap(_elevation);
case 'padding':
final _padding = $value.padding;
return _padding == null
? const $null()
: $WidgetStateProperty.wrap(_padding);
case 'minimumSize':
final _minimumSize = $value.minimumSize;
return _minimumSize == null
? const $null()
: $WidgetStateProperty.wrap(_minimumSize);
case 'fixedSize':
final _fixedSize = $value.fixedSize;
return _fixedSize == null
? const $null()
: $WidgetStateProperty.wrap(_fixedSize);
case 'maximumSize':
final _maximumSize = $value.maximumSize;
return _maximumSize == null
? const $null()
: $WidgetStateProperty.wrap(_maximumSize);
case 'iconColor':
final _iconColor = $value.iconColor;
return _iconColor == null
? const $null()
: $WidgetStateProperty.wrap(_iconColor);
case 'iconSize':
final _iconSize = $value.iconSize;
return _iconSize == null
? const $null()
: $WidgetStateProperty.wrap(_iconSize);
case 'iconAlignment':
final _iconAlignment = $value.iconAlignment;
return _iconAlignment == null
? const $null()
: $IconAlignment.wrap(_iconAlignment);
case 'side':
final _side = $value.side;
return _side == null ? const $null() : $WidgetStateProperty.wrap(_side);
case 'shape':
final _shape = $value.shape;
return _shape == null
? const $null()
: $WidgetStateProperty.wrap(_shape);
case 'mouseCursor':
final _mouseCursor = $value.mouseCursor;
return _mouseCursor == null
? const $null()
: $WidgetStateProperty.wrap(_mouseCursor);
case 'visualDensity':
final _visualDensity = $value.visualDensity;
return _visualDensity == null
? const $null()
: $VisualDensity.wrap(_visualDensity);
case 'tapTargetSize':
final _tapTargetSize = $value.tapTargetSize;
return _tapTargetSize == null
? const $null()
: $MaterialTapTargetSize.wrap(_tapTargetSize);
case 'animationDuration':
final _animationDuration = $value.animationDuration;
return _animationDuration == null
? const $null()
: $Duration.wrap(_animationDuration);
case 'enableFeedback':
final _enableFeedback = $value.enableFeedback;
return _enableFeedback == null ? const $null() : $bool(_enableFeedback);
case 'alignment':
final _alignment = $value.alignment;
return _alignment == null
? const $null()
: $AlignmentGeometry.wrap(_alignment);
case 'splashFactory':
final _splashFactory = $value.splashFactory;
return _splashFactory == null
? const $null()
: runtime.wrapAlways(_splashFactory);
case 'backgroundBuilder':
final _backgroundBuilder = $value.backgroundBuilder;
return _backgroundBuilder == null
? const $null()
: $Function((runtime, target, args) {
final funcResult = _backgroundBuilder(
args[0]!.$value,
args[1]!.$value,
args[2]?.$value,
);
return $Widget.wrap(funcResult);
});
case 'foregroundBuilder':
final _foregroundBuilder = $value.foregroundBuilder;
return _foregroundBuilder == null
? const $null()
: $Function((runtime, target, args) {
final funcResult = _foregroundBuilder(
args[0]!.$value,
args[1]!.$value,
args[2]?.$value,
);
return $Widget.wrap(funcResult);
});
case 'copyWith':
return __copyWith;
case 'merge':
return __merge;
case 'debugFillProperties':
return __debugFillProperties;
}
return _superclass.$getProperty(runtime, identifier);
}