LinearBarPointer class Null safety

LinearBarPointer has properties for customizing the linear gauge bar pointer.

Inheritance

Constructors

LinearBarPointer({Key? key, required double value, bool enableAnimation = true, int animationDuration = 1000, LinearAnimationType animationType = LinearAnimationType.ease, VoidCallback? onAnimationCompleted, double thickness = 5.0, double offset = 0, LinearEdgeStyle edgeStyle = LinearEdgeStyle.bothFlat, LinearElementPosition position = LinearElementPosition.cross, ShaderCallback? shaderCallback, Color? color, Color? borderColor, double borderWidth = 0, Widget? child})
Creates a new instance for LinearBarPointer.
const

Properties

animationDuration int
Specifies the load time animation duration with enableAnimation. Duration is defined in milliseconds. [...]
final
animationType LinearAnimationType
Specifies the animation type for bar pointers. [...]
final
borderColor Color?
Specifies the border color for bar pointer. [...]
final
borderWidth double
Specifies the border width of bar pointer. [...]
final
child Widget?
The widget below this widget in the tree. [...]
final, inherited
color Color?
Specifies the solid color of bar pointers. [...]
final
edgeStyle LinearEdgeStyle
Specifies the edge style to a bar pointer. [...]
final
enableAnimation bool
Specifies the loading animation for bar pointers with animationDuration. [...]
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
offset double
Specifies the offset for bar pointer with respect to axis. The offset cannot be negative. The offset value will not be effective when the bar pointer is in cross position. [...]
final
onAnimationCompleted VoidCallback?
Called when the bar pointer animation is completed. [...]
final
position LinearElementPosition
Specifies position of bar pointer with respect to axis. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shaderCallback ShaderCallback?
Called to get the gradient color for the bar pointer. [...]
final
thickness double
Specifies the thickness of bar pointer. [...]
final
value double
Specifies the pointer value of SfLinearGauge.barPointers. This value must be between the min and max value of an axis track. [...]
final

Methods

createElement() SingleChildRenderObjectElement
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. [...]
@protected, 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.
@protected, 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
updateRenderObject(BuildContext context, covariant RenderLinearBarPointer 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. [...]
@nonVirtual, inherited