CustomCurve class

A CustomCurve is a class that is used to draw custom Section or Zones on the gauge. These custom Section or zones can have a bezier curve or be in a straight line.

LinearGauge(
 curves: [
           CustomCurve(
               midPoint: 50,
               midHeight: 100,
               curvePosition: CurvePosition.top,
                   ),
         ],
   rulers: const RulerStyle(
          rulerPosition: RulerPosition.bottom,
                         ),
        ),
Inheritance

Constructors

CustomCurve({Key? key, double? startHeight = 0, double? endHeight = 0, double? midHeight = 10, PaintStyle paintStyle = PaintStyle.fill, CurveStyle curveStyle = CurveStyle.bezier, Color? color, double? start = 0, CurvePosition curvePosition = CurvePosition.bottom, double? end = 100, required double midPoint})
const

Properties

color Color?
color is the color of the curve.
final
curvePosition CurvePosition
curvePosition is the position of the curve on the LinearGauge.
final
curveStyle CurveStyle
curveStyle allows you to choose between a straight line or a bezier curve.
final
end double?
end is the end value of the curve.
final
endHeight double?
endHeight is the height of the curve at the end point.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
midHeight double?
midHeight is the height of the curve at the mid point.
final
midPoint double
midPoint is the control point of the Bezier curve.
final
paintStyle PaintStyle
paintStyle is the style of paint of the curve.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start double?
start is the start value of the curve.
final
startHeight double?
startHeight is the height of the curve at the start point.
final

Methods

createElement() LeafRenderObjectElement
RenderObjectWidgets always inflate to a RenderObjectElement subclass.
inherited
createRenderObject(BuildContext context) RenderObject
Creates an instance of the RenderObject class that this RenderObjectWidget represents, using the configuration described by this RenderObjectWidget.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didUnmountRenderObject(covariant RenderObject renderObject) → void
A render object previously associated with this widget has been removed from the tree. The given RenderObject will be of the same type as returned by this object's createRenderObject.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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
updateRenderObject(BuildContext context, covariant RenderCurve renderObject) → void
Copies the configuration described by this RenderObjectWidget to the given RenderObject, which will be of the same type as returned by this object's createRenderObject.
override

Operators

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