operator == method
Checks if two RandomDTOptions objects are equal compares list through the elements in them rather than the list itself
Implementation
@override
bool operator ==(Object other) {
return identical(this, other) ||
other is RandomDTOptions &&
runtimeType == other.runtimeType &&
allowPastDates == other.allowPastDates &&
futureYearLimit == other.futureYearLimit &&
_listEquals(_years, other._years) &&
_listEquals(_months, other._months) &&
_listEquals(_days, other._days) &&
_listEquals(_hours, other._hours) &&
_listEquals(_minutes, other._minutes) &&
_listEquals(_seconds, other._seconds) &&
_listEquals(_milliseconds, other._milliseconds) &&
_listEquals(_microseconds, other._microseconds);
}