TffFare class

Annotations

Constructors

TffFare({String status, double distance, double duration, double totalFare, double initialFare, double meteredFare, double tipAmount, double tipPercentage, String locale, _TffCurrency currency, String rateArea, List<TffFlatRate> flatRates, List<TffExtraCharge> extraCharges })
TffFare.fromJson(Map<String, dynamic> json)
factory

Properties

currency → _TffCurrency
final
currencySymbol → String
The currency code (ISO 4217) used to calculate the trip fare
read-only
distance → double
The trip's distance in meters
final
duration → double
The trip's duration in seconds
final
extraCharges → List<TffExtraCharge>
A list of extra charges applied to the trip
@JsonKey(name: 'extra_charges'), final
flatRates → List<TffFlatRate>
A list of flat rates applied to the trip
@JsonKey(name: 'flat_rates'), final
initialFare → double
The charge for the first portion of the trip
@JsonKey(name: 'initial_fare', fromJson: _stringToDouble), final
locale → String
The locale of the city / entity used in the fare calculation, for example en_US
final
meteredFare → double
The charge based on the distance of the trip and in addition to the initialFare
@JsonKey(name: 'metered_fare'), final
rateArea → String
The name of the area used for the calculation of the trip. Can differ from the city / entity optionally passed to this method.
@JsonKey(name: 'rate_area'), final
status → String
final
tipAmount → double
The suggested tip amount
@JsonKey(name: 'tip_amount'), final
tipPercentage → double
The suggested tip percentage
@JsonKey(name: 'tip_percentage'), final
totalFare → double
The total fare in the local currency (see currencySymbol) Includes intialFare, meteredFare and tipAmount
@JsonKey(name: 'total_fare'), final
totalFareWithoutTip → double
The total fare in the local currency (see currencySymbol) without the tip. Includes intialFare, meteredFare but excludes tipAmount
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited