maxDate method

DateTime maxDate(
  1. DateTime? other
)

获取最大时间

Implementation

DateTime maxDate(DateTime? other) {
  return (other == null || isAfter(other)) ? this : other;
}