Skip to main content

MaterialStateBorderSide

Type Alias MaterialStateBorderSide 

Source
pub type MaterialStateBorderSide = WidgetStateBorderSide;
๐Ÿ‘Ž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.

Expand description

Defines a BorderSide whose value depends on a set of MaterialStates which represent the interactive state of a component.

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.

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.

Aliased Typeยง

pub struct MaterialStateBorderSide { /* private fields */ }