testAccess method

  1. @override
bool testAccess(
  1. covariant BitStruct<BitField> struct
)
override

Whether this field is present/valid for struct. Defaults to true (fixed-schema). Override for optional/sparse fields.

Implementation

@override
bool testAccess(BitStruct<BitField> struct) => bitmask.shift + bitmask.width <= struct.width;