allOrNull<T> static method

WidgetStateProperty<T>? allOrNull<T>(
  1. T? value
)

Returns null if value is null, otherwise WidgetStatePropertyAll<T>(value).

A convenience method for subclasses.

Implementation

static WidgetStateProperty<T>? allOrNull<T>(T? value) =>
    value == null ? null : WidgetStatePropertyAll<T>(value);