all<T> method Null safety

MaterialStateProperty<T> all<T>(
  1. T value

Convenience method for creating a MaterialStateProperty that resolves to a single value for all states.

If you need a const value, use MaterialStatePropertyAll directly.


// TODO(darrenaustin): Deprecate this when we have the ability to create
// a dart fix that will replace this with MaterialStatePropertyAll:
static MaterialStateProperty<T> all<T>(T value) => MaterialStatePropertyAll<T>(value);