Fare constructor

Fare(
  1. String name,
  2. FarePrice? price,
  3. FareReason reason
)

Creates a new instance.

  • name Name of a fare
  • price Price of a fare. It is null when no price data is available.
  • reason Reason of this cost.

Implementation

Fare(this.name, this.price, this.reason);