BitField<T extends dynamic>.filled constructor

BitField<T extends dynamic>.filled(
  1. int length,
  2. bool value
)

Creates a bit field filled with a particular value.

If the value argument is true, the bits are filled with ones. Otherwise, the bits are filled with zeros.

The given length must be at most 62.

Implementation

factory BitField.filled(int length, bool value) = bitfield.BitField<T>.filled;