TrafficFlowBase constructor

TrafficFlowBase(
  1. double freeFlowSpeedInMetersPerSecondGetLambda(),
  2. double jamFactorGetLambda()
)

This interface provides details about a traffic flow.
For additional information about fields, refer to Traffic API v7 API Reference: Traffic API v7.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

Implementation

factory TrafficFlowBase(
  double Function() freeFlowSpeedInMetersPerSecondGetLambda,
  double Function() jamFactorGetLambda
) => TrafficFlowBase$Lambdas(
  freeFlowSpeedInMetersPerSecondGetLambda,
  jamFactorGetLambda
);