TollBooth constructor

TollBooth(
  1. List<TollCollectionMethod> tollCollectionMethods,
  2. List<PaymentMethod> paymentMethods
)

Creates a new instance.

  • tollCollectionMethods Indicates the type.
  • paymentMethods Indicates the supported payment methods.

Implementation

TollBooth(this.tollCollectionMethods, this.paymentMethods);