all<T> static method

WidgetStateProperty<T> all<T>(
  1. T value
)

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

If you need a const value, use WidgetStatePropertyAll directly.

Implementation

// TODO(darrenaustin): Deprecate this when we have the ability to create
// a dart fix that will replace this with WidgetStatePropertyAll:
// https://github.com/dart-lang/sdk/issues/49056.
static WidgetStateProperty<T> all<T>(T value) => WidgetStatePropertyAll<T>(value);