DiscreteGraphic class Null safety

Build a StatelessWidget : Container of defined size containing the graphic

The graphic can contain different elements :

Points if colorPoint is defined.

Lines if colorLine is defined.

Verticals bars if colorBox is defined.

Inheritance

Constructors

DiscreteGraphic({required Size size, required List<num>? nums, required Color colorAxes, required int nbGradY, double? minY, double? maxY, Color? colorLine, double? strokeLine, Color? colorPoint, double? radiusPoint, Color? colorBox, double? boxWidth, List<String>? listGradX})

Properties

boxWidth double?
Stroke width for verticals bars. [...]
final
colorAxes Color
colors of the axes of the graphic [...]
final
colorBox Color?
colors of the verticals bars of the graphic. If the value is null, no bars will be drawn. [...]
final
colorLine Color?
colors of the lines of the graphic. If the value is null, no line will be drawn. [...]
final
colorPoint Color?
colors of the points of the graphic. If the value is null, no points will be drawn. [...]
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
key Key?
Controls how one widget replaces another widget in the tree. [...]
final, inherited
listGradX List<String>?
List of String. [...]
final
maxY double?
Maximum value of the vertical axis. [...]
final
minY double?
Minimum value of the vertical axis. [...]
final
nbGradY int
Number of graduations on the vertical axis [...]
final
nums List<num>?
List of numbers containing the values to be represented. [...]
final
radiusPoint double?
radius of the points. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size Size
The size of the container returned. [...]
final
strokeLine double?
Stoke of the lines. [...]
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget. [...]
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree. [...]
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object. [...]
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants. [...]
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object. [...]
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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