MaterialStateBorderSide typedef
- @Deprecated('Use WidgetStateBorderSide instead. ' 'Moved to the Widgets layer to make code available outside of Material. ' 'This feature was deprecated after v3.19.0-0.3.pre.')
Defines a BorderSide whose value depends on a set of MaterialStates which represent the interactive state of a component.
To use a MaterialStateBorderSide, you should create a subclass of a
MaterialStateBorderSide and override the abstract resolve
method.
This class enables existing widget implementations with BorderSide
properties to be extended to also effectively support MaterialStateProperty<BorderSide>
property values. MaterialStateBorderSide should only be used with widgets that document
their support, like ActionChip.side.
To create a local project with this code sample, run:
flutter create --sample=material.MaterialStateBorderSide.1 mysample
This class should only be used for parameters which are documented to take MaterialStateBorderSide, otherwise only the default state will be used.
See also:
- WidgetStateBorderSide, the non-Material version that can be used
interchangeably with
MaterialStateBorderSide
.
Implementation
@Deprecated(
'Use WidgetStateBorderSide instead. '
'Moved to the Widgets layer to make code available outside of Material. '
'This feature was deprecated after v3.19.0-0.3.pre.'
)
typedef MaterialStateBorderSide = WidgetStateBorderSide;