BasePointer class abstract

A BasePointer is a widget that is used to indicate the value of the LinearGauge.

The LinearGauge takes a list of BasePointer as an input i.e Pointer & WidgetPointer. value Sets the value of the pointer height and weight Sets the height & weight of the pointer child adds the custom widget as a pointer PointerShape Sets the shape of the pointer

Note: The value of the pointer should be between the start and end value of the LinearGauge and if the value is null it takes the value specified in Linear Gauge

const LinearGauge(
   pointers: const [
     Pointer(
      value: 50.0,
      color: Colors.red,
      shape: PointerShape.circle,
   ),
     WidgetPointer(
      value: 20.0,
      child: Image.assets("image",height:100,width:100),
   ),
  ],
),
Implementers

Constructors

BasePointer({Key? key, required double value, PointerPosition pointerPosition = PointerPosition.center, PointerAlignment pointerAlignment = PointerAlignment.center, int animationDuration = 1000, Curve animationType = Curves.ease, bool enableAnimation = true})

Properties

animationDuration int
Specifies the load time animation duration with enableAnimation. Duration is defined in milliseconds.
final
animationType Curve
Specifies the animation type of pointers.
final
enableAnimation bool
Specifies the load time animation duration with enableAnimation. Duration is defined in milliseconds.
final
hashCode int
The hash code for this object.
no setterinherited
pointerAlignment PointerAlignment
Pointer Alignment on the LinearGauge sets the alignment of pointer on the LinearGauge
final
pointerPosition PointerPosition
Pointer Position on the LinearGauge sets the position of pointer on the LinearGauge
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double
value Sets the value of the pointer on the LinearGauge default is to set to the value of the LinearGauge
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