useQueue<T> function

QueueController<T> useQueue<T>([
  1. Iterable<T> initialValue = const <Never>[]
])

Creates stable queue state initialized with a snapshot of initialValue.

Implementation

QueueController<T> useQueue<T>([Iterable<T> initialValue = const <Never>[]]) {
  return use(_QueueHook<T>(initialValue));
}