nullable<T> static method

ToggleStyleProperty<T>? nullable<T>(
  1. T? value, {
  2. bool animationEnabled = true,
})

Implementation

static ToggleStyleProperty<T>? nullable<T>(
  T? value, {
  bool animationEnabled = true,
}) =>
    value == null
        ? null
        : ToggleStyleProperty(value, animationEnabled: animationEnabled);