isSameDay method

bool isSameDay(
  1. dynamic other
)

Implementation

bool isSameDay(final other) {
  if (other is DateTime) {
    return this.year == other.year &&
        this.month == other.month &&
        this.day == other.day;
  } else if (other is FlexiDate) {
    return (other.year == null || this.year == other.year) &&
        this.month == other.month &&
        this.day == other.day;
  }
  assert(false, 'Shouldnt get here');
  return false;
}