Skip to content

Commit c8e7073

Browse files
committed
refactor: Dart analyze and dartdoc fixes
1 parent 86ce2ae commit c8e7073

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/src/area.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class Area extends Measurement<Area> {
146146
double get asSquareInches => _precise(Area.squareInches._of(si));
147147

148148
@override
149-
String toString() => '${asSquareMeters} m²';
149+
String toString() => '$asSquareMeters m²';
150150

151151
@override
152152
Area _construct(final double squareMeters, final Precision precision) =>

lib/src/distance.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class Distance extends Measurement<Distance> {
184184
double get asNauticalMiles => _preciseOf(Distance.nauticalMiles);
185185

186186
@override
187-
String toString() => '${asMeters} m';
187+
String toString() => '$asMeters m';
188188

189189
@override
190190
Distance _construct(final double si, final Precision precision) =>

lib/src/interpreter.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ part of fling_units;
77
/// will generally only require the built-in converters for the [Measurement]
88
/// types being used (e.g. [Distance.miles]), but if needed, some
99
/// [MeasurementInterpreter] subtypes can be configured further (e.g.
10-
/// [AreaConverter]).
10+
/// [AreaInterpreter]).
1111
///
1212
/// Users should not need to access the internal workings of
13-
/// [MeasurementConverters], but instead pass them to the appropriate
13+
/// [MeasurementInterpreter]s, but instead pass them to the appropriate
1414
/// [Measurement] instances for interpretation (typically via an `as()` method,
1515
/// such as [Area.as]).
1616
abstract class MeasurementInterpreter<T> {

0 commit comments

Comments
 (0)