WidgetStateOutlinedBorder.fromMap constructor

const WidgetStateOutlinedBorder.fromMap(
  1. WidgetStateMap<OutlinedBorder?> map
)

Creates a WidgetStateOutlinedBorder from a WidgetStateMap.

This constructor's resolve method finds the first MapEntry whose key is satisfied by the set of states, and returns its associated value. It should only be used with widgets that support WidgetStateOutlinedBorder, such as ChipThemeData.shape (throws an error if used as a regular OutlinedBorder).

Resolves to null if no keys match, deferring to the default value of the widget or theme.

Implementation

const factory WidgetStateOutlinedBorder.fromMap(WidgetStateMap<OutlinedBorder?> map) =
    _WidgetOutlinedBorderMapper;