Flag<T extends Flags<T>>.fromOffset constructor

const Flag<T extends Flags<T>>.fromOffset(
  1. int offset
)

Create a new Flag from an offset into the bitfield.

Implementation

const Flag.fromOffset(int offset) : super(1 << offset);