Skip to content

Commit

Permalink
Make GeoShape subclasses final
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko authored and nirinchev committed Nov 1, 2023
1 parent d71f09a commit e405c95
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions common/lib/src/realm_types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ sealed class GeoShape {}
/// Location toLocation() => toGeoPoint().toLocation();
/// }
/// ```
class GeoPoint implements GeoShape {
final class GeoPoint implements GeoShape {
final double lon;
final double lat;

Expand Down Expand Up @@ -308,7 +308,7 @@ class GeoPoint implements GeoShape {
///
/// This type can be used as the query argument for a `geoWithin` query.
/// It cannot be persisted as a property on a realm object.
class GeoBox implements GeoShape {
final class GeoBox implements GeoShape {
final GeoPoint southWest;
final GeoPoint northEast;

Expand Down Expand Up @@ -342,7 +342,7 @@ extension on GeoRing {
///
/// This type can be used as the query argument for a `geoWithin` query.
/// It cannot be persisted as a property on a realm object.
class GeoPolygon implements GeoShape {
final class GeoPolygon implements GeoShape {
final GeoRing outerRing;
final List<GeoRing> holes;

Expand Down Expand Up @@ -383,7 +383,7 @@ const _radiansPerMeterOnEarthSphere = 1.5678502891116e-7; // at equator
const _radiansPerDegree = pi / 180;

/// An equatorial distance on earth's surface.
class GeoDistance implements Comparable<GeoDistance> {
final class GeoDistance implements Comparable<GeoDistance> {
/// The distance in radians
final double radians;

Expand Down Expand Up @@ -453,7 +453,7 @@ extension DoubleToGeoDistance on num {
///
/// This type can be used as the query argument for a `geoWithin` query.
/// It cannot be persisted as a property on a realm object.
class GeoCircle implements GeoShape {
final class GeoCircle implements GeoShape {
final GeoPoint center;
final GeoDistance radius;

Expand Down

0 comments on commit e405c95

Please sign in to comment.