| // Copyright 2017, the Chromium project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| part of cloud_firestore; |
| |
| class GeoPoint { |
| const GeoPoint(this.latitude, this.longitude); |
| |
| final double latitude; |
| final double longitude; |
| |
| @override |
| bool operator ==(dynamic o) => |
| o is GeoPoint && o.latitude == latitude && o.longitude == longitude; |
| |
| @override |
| int get hashCode => hashValues(latitude, longitude); |
| } |