Distance class
Constructors
- Distance({required int actual_distance, required double calculated_distance, required String duration, required DeliveryCost deliveryCost, required int total_delivery_cost})
- Distance.fromJson(String source)
-
factory
- Distance.fromMap(Map map)
-
factory
Properties
- actual_distance → int
-
final
- calculated_distance → double
-
final
- deliveryCost → DeliveryCost
-
final
- duration → String
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- total_delivery_cost → int
-
final
Methods
-
copyWith(
{int? actual_distance, double? calculated_distance, String? duration, DeliveryCost? deliveryCost, int? total_delivery_cost}) → Distance -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant Distance other) → bool -
The equality operator.
override