resolveWith method Null safety
- MaterialPropertyResolver<
Color> callback
override
Creates a MaterialStateColor from a MaterialPropertyResolver<Color> callback function.
If used as a regular color, the color resolved in the default state (the empty set of states) will be used.
The given callback parameter must return a non-null color in the default state.
Implementation
static MaterialStateColor resolveWith(MaterialPropertyResolver<Color> callback) => _MaterialStateColor(callback);