operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Returns true if other is a LocalDateTime with the same date and time.

Implementation

@override
bool operator ==(Object other) {
  return other is LocalDateTime && _date == other._date;
}