operator == method

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

Compare deux choix sur la base de l'identifiant de l'école.

Implementation

@override
bool operator ==(Object other) {
  // if (identical(this, other)) return true;
  if (other is! Choice) return false;
  return school.id == other.school.id;
}