WidgetStateTextStyle.resolveWith constructor
- 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.
Implementation
const factory WidgetStateTextStyle.resolveWith(WidgetPropertyResolver<TextStyle> callback) = _WidgetStateTextStyle;