HexConfig class
Configuration for hex viewer display and behavior.
This class controls all visual and interactive aspects of the HexViewer widget, including layout, colors, and enabled features.
Example:
const config = HexConfig(
bytesPerLine: 16,
groupSize: 8,
showOffset: true,
showAscii: true,
enableSelection: true,
enableCopy: true,
colorScheme: ByteColorScheme.fromTheme(theme),
);
See also:
- HexViewer which uses this configuration
- ByteColorScheme for color customization
Constructors
Properties
- bytesPerLine → int
-
Number of bytes displayed per line.
final
- colorScheme → ByteColorScheme
-
Color scheme for different byte types.
final
- enableCopy → bool
-
Whether to enable copy to clipboard functionality.
final
- enableSelection → bool
-
Whether to enable interactive byte selection.
final
- groupSize → int
-
Size of byte groups for visual separation.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showAscii → bool
-
Whether to display the ASCII column on the right.
final
- showOffset → bool
-
Whether to display the offset column on the left.
final
Methods
-
copyWith(
{int? bytesPerLine, int? groupSize, bool? showOffset, bool? showAscii, bool? enableSelection, bool? enableCopy, ByteColorScheme? colorScheme}) → HexConfig - Creates a copy of this configuration with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override