WidgetStateTextStyle.resolveWith constructor

const WidgetStateTextStyle.resolveWith(
  1. WidgetPropertyResolver<TextStyle> callback

Creates a WidgetStateTextStyle from a WidgetPropertyResolver<TextStyle> callback function.

If used as a regular text style, the style resolved in the default state (the empty set of states) will be used.

The given callback parameter must return a non-null text style in the default state.


const factory WidgetStateTextStyle.resolveWith(WidgetPropertyResolver<TextStyle> callback) = _WidgetStateTextStyle;