throttle static method

TileUpdateTransformer throttle(
  1. Duration duration, {
  2. bool ignoreTapEvents = true,
})

Throttle loading/updating/pruning tiles such that it only occurs once per duration

Implementation

static TileUpdateTransformer throttle(
  Duration duration, {
  /// Whether to filter tap events as [ignoreTapEvents] does
  bool ignoreTapEvents = true,
}) =>
    throttleStreamTransformerWithTrailingCall<TileUpdateEvent>(
      duration,
      ignore: ignoreTapEvents ? _triggeredByTap : null,
    );