Skip to content

Commit

Permalink
const condtructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
xclud committed Feb 6, 2024
1 parent 44a660b commit 25175d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/angle.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ part of '../latlng.dart';

/// Represents an angle.
class Angle {
Angle._(this.degrees, this.radians);
const Angle._(this.degrees, this.radians);

/// From degrees.
Angle.degree(double value) : this._(value, value * _deg2rad);
const Angle.degree(double value) : this._(value, value * _deg2rad);

/// From degrees.
Angle.radian(double value) : this._(value * _rad2deg, value);
const Angle.radian(double value) : this._(value * _rad2deg, value);

/// In degrees.
final double degrees;
Expand Down

0 comments on commit 25175d6

Please sign in to comment.