MapIdleListener constructor

MapIdleListener(
  1. void onMapBusyLambda(),
  2. void onMapIdleLambda()
)

Used to detect when the map becomes idle or busy.

Map is considered busy when its state changes (for example as a result of camera manipulation) and/or when it requires a redraw (for example, as a result of map data being downloaded).

Map is considered idle when current state is fully rendered and no further redraws are necessary.

Implementation

factory MapIdleListener(
  void Function() onMapBusyLambda,
  void Function() onMapIdleLambda,

) => MapIdleListener$Lambdas(
  onMapBusyLambda,
  onMapIdleLambda,

);