NumericMultiLevelLabel class Null safety

Provides options to customize the start, the end value of a multi-level label, text, and level of the multi-level labels.

The start and end values need to be double type.

Widget build(BuildContext context) {
  return Container(
    child: SfCartesianChart(
      primaryXAxis: NumericAxis(
        multiLevelLabels: const <NumericMultiLevelLabel>[
          NumericMultiLevelLabel(
            start: 0,
            end: 2,
            text: 'First',
          ),
          NumericMultiLevelLabel(
            start: 2,
            end: 4,
            text: 'Second',
          )
        ]
      )
    )
  );
}
Implementers

Constructors

NumericMultiLevelLabel({double? start, double? end, int? level, String? text})
Constructor for NumericMultiLevelLabel class
const

Properties

end double?
End value of the multi-level label. The value where the multi-level label border needs to end. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
level int?
Level specifies in which row the multi-level label should be positioned. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
start double?
Start value of the multi-level label. The value from where the multi-level label border needs to start. [...]
final
text String?
Text to be displayed in grouping label as the multi-level label. [...]
final, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited