BarInteractionEvents class

BarInteractionEvents the interaction behaviour and callbacks for BarChart

See also:

Constructors

BarInteractionEvents.new({required bool isEnabled, SnapToBarConfig snapToBarConfig = const SnapToBarConfig(), Fuzziness fuzziness = const Fuzziness.zero(), void onTap(BarInteractionResult interactionResult)?, void onDoubleTap(BarInteractionResult interactionResult)?, void onDragStart(BarInteractionResult interactionResult)?, void onDrag(BarInteractionResult interactionResult)?, void onDragEnd(BarInteractionResult interactionResult)?, void onRawInteraction(BarInteractionResult interactionResult)?})
const

Properties

fuzziness Fuzziness
Fuzziness increases the area of hit detection for a bar. Should ideally be used only if SnapToBarConfig is disabled.
final
hashCode int
The hash code for this object.
no setterinherited
isEnabled bool
Set if interaction is enabled.
finalinherited
onDoubleTap → void Function(BarInteractionResult interactionResult)?
onDoubleTap is be called after a double tap gesture is detected.
finalinherited
onDrag → void Function(BarInteractionResult interactionResult)?
onDrag is called when the pointer location is updated for the pointer that started the drag gesture.
finalinherited
onDragEnd → void Function(BarInteractionResult interactionResult)?
onDragEnd is called when the pointer that triggered the drag gesture stop moving ending the drag gesture.
finalinherited
onDragStart → void Function(BarInteractionResult interactionResult)?
onDragStart is called when a pointer comes in contact with the screen and starts moving triggering a drag gesture.
finalinherited
onRawInteraction → void Function(BarInteractionResult interactionResult)?
onRawInteraction receives all types of interaction events.
finalinherited
onTap → void Function(BarInteractionResult interactionResult)?
onTap is be called after a tap gesture is completed. It is called right after onTapUp.
finalinherited
onTapDown → void Function(BarInteractionResult interactionResult)?
onTapDown is called when the pointer that will trigger a tap gesture comes in contact with the screen.
finalinherited
onTapUp → void Function(BarInteractionResult interactionResult)?
onTapUp is called when the pointer that will trigger a tap gesture stops making contact with the screen.
finalinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldHitTest bool
no setterinherited
snapToBarConfig SnapToBarConfig
SnapToBarConfig determines the way interactions outside the boundary of the bar are handled by dictating how the interactions are interpreted.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onInteraction(BarInteractionResult interactionResult) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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