throttled method

Widget throttled({
  1. required Widget to(
    1. BuildContext context,
    2. T value
    ),
  2. Duration duration = const Duration(milliseconds: 100),
})

Create a throttled slot.

Implementation

Widget throttled({
  required Widget Function(BuildContext context, T value) to,
  Duration duration = const Duration(milliseconds: 100),
}) {
  return ThrottleSlot<T>(
    connect: this,
    to: to,
    duration: duration,
  );
}