Bitmasks.fromWidths constructor

Bitmasks.fromWidths(
  1. Iterable<int> widths
)

Implementation

Bitmasks.fromWidths(Iterable<int> widths) : bitmasks = widths.mapIndexed((index, width) => Bitmask(widths.take(index).sum, width));