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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user