1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-26 17:08:44 +00:00

migrate place_tracker to go_router (#1529)

This commit is contained in:
Miguel Beltran
2022-12-16 01:39:23 +01:00
committed by GitHub
parent f66188c862
commit db94e92a26
6 changed files with 108 additions and 96 deletions

View File

@@ -42,6 +42,27 @@ class Place {
starRating: starRating ?? this.starRating,
);
}
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is Place &&
runtimeType == other.runtimeType &&
id == other.id &&
latLng == other.latLng &&
name == other.name &&
category == other.category &&
description == other.description &&
starRating == other.starRating;
@override
int get hashCode =>
id.hashCode ^
latLng.hashCode ^
name.hashCode ^
category.hashCode ^
description.hashCode ^
starRating.hashCode;
}
enum PlaceCategory {