Uint8ClampedQueue.fromList constructor Null safety

Uint8ClampedQueue.fromList(
  1. List<int> elements
)

Creates a Uint8ClampedQueue with the same length and contents as elements.

Implementation

factory Uint8ClampedQueue.fromList(List<int> elements) =>
    Uint8ClampedQueue(elements.length)..addAll(elements);