ifFalse<T> method

T? ifFalse<T>(
  1. T value
)

当本值为 false 时返回 value,否则返回 null。

Implementation

T? ifFalse<T>(T value) => this ? null : value;