MaterialStateOutlinedBorder typedef

  1. @Deprecated('Use WidgetStateOutlinedBorder instead. ' 'Moved to the Widgets layer to make code available outside of Material. ' 'This feature was deprecated after v3.19.0-0.3.pre.')
MaterialStateOutlinedBorder = WidgetStateOutlinedBorder

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

To use a MaterialStateOutlinedBorder, you should create a subclass of an OutlinedBorder and implement MaterialStateOutlinedBorder's abstract resolve method.

This example defines a subclass of RoundedRectangleBorder and an implementation of MaterialStateOutlinedBorder, that resolves to RoundedRectangleBorder when its widget is selected.
link

To create a local project with this code sample, run:
flutter create --sample=material.MaterialStateOutlinedBorder.1 mysample

This class should only be used for parameters which are documented to take MaterialStateOutlinedBorder, otherwise only the default state will be used.

See also:

Implementation

@Deprecated(
  'Use WidgetStateOutlinedBorder 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 MaterialStateOutlinedBorder = WidgetStateOutlinedBorder;