CustomWarningProvider constructor
- int getCustomWarningTypeLambda(),
- List<
CustomWarning> getWarningsLambda()
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,
);