resolveWith method Null safety

MaterialStateTextStyle resolveWith(
  1. MaterialPropertyResolver<TextStyle> callback
)
override

Creates a MaterialStateTextStyle from a MaterialPropertyResolver<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

static MaterialStateTextStyle resolveWith(MaterialPropertyResolver<TextStyle> callback) =>
    _MaterialStateTextStyle(callback);