WidgetStateTextStyle.resolveWith constructor
- WidgetPropertyResolver<
TextStyle> callback
Creates a WidgetStateTextStyle from a WidgetPropertyResolver<TextStyle> callback function.
Behaves like an empty TextStyle()
constructor if used as a
regular TextStyle.
The given callback parameter must return a non-null text style in the default state.
Implementation
const factory WidgetStateTextStyle.resolveWith(WidgetPropertyResolver<TextStyle> callback) =
_WidgetStateTextStyle;