throttle static method

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

Throttle updates such that maximum one per duration is emitted.

Implementation

static TileUpdateTransformer throttle(
  Duration duration, {
  /// If true tap events will be filtered out.
  bool ignoreTapEvents = true,
}) =>
    throttleStreamTransformerWithTrailingCall<TileUpdateEvent>(
      duration,
      ignore: ignoreTapEvents ? _triggeredByTap : null,
    );