isNullOrMatches method

bool isNullOrMatches(
  1. T value
)

Returns true if the value is null or matches the given value otherwise returns false.

Implementation

bool isNullOrMatches(T value) => this == null || this == value;