Uint16Queue.fromList constructor Null safety

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

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

Implementation

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