LabelConfig class

Configuration for LabelOverlay.

Constructors

LabelConfig({bool showLabels = true, double labelScale = 0.25, FileLabelPosition fileLabelPosition = FileLabelPosition.bottom, RankLabelPosition rankLabelPosition = RankLabelPosition.right, Labeller fileLabeller = alphaLowerLabel, Labeller rankLabeller = numericLabel, TextStyle textStyle = const TextStyle(height: 1.0, fontWeight: FontWeight.bold)})
const

Properties

fileLabeller Labeller
Defines how file label strings are built from indices.
final
fileLabelPosition FileLabelPosition
The position of the file labels (top or bottom).
final
hashCode int
The hash code for this object.
no setterinherited
labelScale double
The scale of labels relative to the size of the square, where 1.0 is the full width/height of the square.
final
rankLabeller Labeller
Defines how rank label strings are built from indices.
final
rankLabelPosition RankLabelPosition
The position of the rank labels (left or right).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showLabels bool
Whether labels should be shown at all.
final
textStyle TextStyle
Text style of the labels. Will have a colour applied to it depending on the square.
final

Methods

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.
inherited

Constants

disabled → const LabelConfig
Disabled labels.
standard → const LabelConfig
The standard labelling configuration.