isAfterNullable method

  1. @useResult
bool isAfterNullable(
  1. DateTime? other
)

Returns false if other is null, otherwise returns the result of comparing this DateTime with other using the isAfter method.

Implementation

@useResult
bool isAfterNullable(DateTime? other) {
  if (other == null) {
    return false;
  }

  return isAfter(other);
}