CustomWarningProvider constructor

CustomWarningProvider(
  1. int getCustomWarningTypeLambda(),
  2. List<CustomWarning> getWarningsLambda(
    1. SegmentData,
    2. SegmentData?
    )
)

A abstract class representing a provider of custom warnings based on vehicle position.

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 CustomWarningProvider(
  int Function() getCustomWarningTypeLambda,
  List<CustomWarning> Function(SegmentData, SegmentData?) getWarningsLambda,

) => CustomWarningProvider$Lambdas(
  getCustomWarningTypeLambda,
  getWarningsLambda,

);