allOrNull<T> static method
Returns null if value is null, otherwise MaterialStateProperty.all<T>(value).
A convenience method for subclasses.
Implementation
static WidgetStateProperty<T>? allOrNull<T>(T? value) =>
value == null ? null : WidgetStateProperty.all<T>(value);