MarkerPointer class
Create the pointer to indicate the value with built-in shape.
To highlight values, set the marker pointer type to a built-in shape, such as a circle, text, image, triangle, inverted triangle, square, or diamond.
Widget build(BuildContext context) {
return Container(
child: SfRadialGauge(
axes:<RadialAxis>[RadialAxis(
pointers: <GaugePointer>[MarkerPointer(value: 50,
)],
)]
));
}
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- RenderObjectWidget
- LeafRenderObjectWidget
- MarkerPointer
- Implemented types
Constructors
-
MarkerPointer({Key? key, double value = 0, bool enableDragging = false, ValueChanged<
double> ? onValueChanged, ValueChanged<double> ? onValueChangeStart, ValueChanged<double> ? onValueChangeEnd, ValueChanged<ValueChangingArgs> ? onValueChanging, AnimationType animationType = AnimationType.ease, bool enableAnimation = false, double animationDuration = 1000, MarkerType markerType = MarkerType.invertedTriangle, Color? color, double markerWidth = 10, double markerHeight = 10, double borderWidth = 0, double markerOffset = 0, String? text, Color? borderColor, GaugeSizeUnit offsetUnit = GaugeSizeUnit.logicalPixel, String? imageUrl, MarkerPointerRendererFactory<MarkerPointerRenderer> ? onCreatePointerRenderer, GaugeTextStyle? textStyle, Color? overlayColor, double? overlayRadius, double elevation = 0}) -
Create a marker pointer with the default or required properties.
const
Properties
- animationDuration → double
-
Specifies the duration of the pointer animation.
final
- animationType → AnimationType
-
Specifies the different type of animation for pointer.
final
- borderColor → Color?
-
Specifies the border color for marker.
final
- borderWidth → double
-
Specifies the border width for marker.
final
- color → Color?
-
Specifies the color for marker pointer.
final
- elevation → double
-
Elevation of the pointer.
final
- enableAnimation → bool
-
Whether to enable the pointer animation.
final
- enableDragging → bool
-
Whether to allow the pointer dragging.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageUrl → String?
-
Specifies the image Url path for marker pointer.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- markerHeight → double
-
Specifies the marker height in logical pixels.
final
- markerOffset → double
-
Adjusts the marker pointer position.
final
- markerType → MarkerType
-
Specifies the built-in shape type for pointer.
final
- markerWidth → double
-
Specifies the marker width in logical pixels.
final
- offsetUnit → GaugeSizeUnit
-
Calculates the marker position either in logical pixel or radius factor.
final
-
onCreatePointerRenderer
→ MarkerPointerRendererFactory<
MarkerPointerRenderer> ? -
The callback that is called when the custom renderer for
the marker pointer is created. and it is not applicable for
built-in marker pointer
final
-
onValueChanged
→ ValueChanged<
double> ? -
Called during a drag when the user is selecting a new value for the
pointer by dragging.
final
-
onValueChangeEnd
→ ValueChanged<
double> ? -
Called when the user is done selecting a new value of the pointer
by dragging.
final
-
onValueChangeStart
→ ValueChanged<
double> ? -
Called when the user starts selecting a new value of pointer by dragging.
final
-
onValueChanging
→ ValueChanged<
ValueChangingArgs> ? -
Called during a drag when the user is selecting before a new value
for the pointer by dragging.
final
- overlayColor → Color?
-
Color of the overlay drawn around the marker pointer.
final
- overlayRadius → double?
-
Radius of the overlay drawn around the marker pointer.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
Specifies the text for marker pointer.
final
- textStyle → GaugeTextStyle
-
The style to use for the marker pointer text.
final
- value → double
-
Specifies the value to the pointer.
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, int wrapWidth = 65}) → 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 RenderMarkerPointer 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