testAccess method

  1. @override
bool testAccess(
  1. covariant ByteStruct<ByteField<V>> byteData
)
override

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

Implementation

@override
bool testAccess(ByteStruct<ByteField<V>> byteData) => end <= byteData.lengthInBytes;