FrameWindow constructor

FrameWindow({
  1. required int capacity,
})

Creates a window admitting at most capacity outstanding frames.

Implementation

FrameWindow({required this.capacity}) {
  if (capacity < 1) {
    throw ArgumentError.value(capacity, 'capacity', 'must be at least 1');
  }
}