resolve method Null safety

T resolve(
  1. Set<MaterialState> states
)

Returns a value of type T that depends on states.

Widgets like TextButton and ElevatedButton apply this method to their current MaterialStates to compute colors and other visual parameters at build time.

Implementation

T resolve(Set<MaterialState> states);