Fare class

Holds all the fare data.

Constructors

Fare(String name, FarePrice? price, FareReason reason)
Creates a new instance.

Properties

hashCode → int
The hash code for this object.
no setter
name ↔ String
Name of a fare
getter/setter pair
price FarePrice?
Price of a fare. It is null when no price data is available.
getter/setter pair
reason FareReason
Reason of this cost.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.