UnitOfMeasuresDto class
- Available extensions
Constructors
- UnitOfMeasuresDto({required String unit, required double numerator, required double denominator})
-
const
-
UnitOfMeasuresDto.fromJson(Map<
String, dynamic> json) -
Creates a new instance from a JSON map.
factory
Properties
- denominator → double
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- numerator → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unit → String
-
final
Methods
-
convertQuantity(
{required UnitOfMeasuresDto newUnit, required double value, bool removeZeros = false}) → double -
Available on UnitOfMeasuresDto, provided by the ConvertToUnit extension
-
copyWith(
{String? unit, double? numerator, double? denominator}) → UnitOfMeasuresDto - Creates a copy of the current instance with optional new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override