HexConfig constructor
const
HexConfig({})
Creates a hex viewer configuration.
All parameters are optional with sensible defaults suitable for most use cases.
Throws AssertionError if:
bytesPerLineis not positivegroupSizeis negativegroupSizeexceedsbytesPerLine
Implementation
const HexConfig({
this.bytesPerLine = 16,
this.groupSize = 8,
this.showOffset = true,
this.showAscii = true,
this.enableSelection = true,
this.enableCopy = true,
this.colorScheme = const ByteColorScheme.standard(),
}) : assert(bytesPerLine > 0, 'bytesPerLine must be positive'),
assert(groupSize >= 0, 'groupSize must be non-negative'),
assert(
groupSize == 0 || groupSize <= bytesPerLine,
'groupSize cannot exceed bytesPerLine',
);