Bitmask constructor

const Bitmask(
  1. int shift,
  2. int width
)

Implementation

const Bitmask(this.shift, this.width) : bitmask = ((1 << width) - 1) << shift;