MouseTrackerUpdateDetails class Null safety

Used by BaseMouseTracker to provide the details of an update of a mouse device.

This class contains the information needed to handle the update that might change the state of a mouse device, or the MouseTrackerAnnotations that the mouse device is hovering.

Mixed in types
Annotations
  • @immutable

Constructors

MouseTrackerUpdateDetails.byNewFrame({required LinkedHashMap<MouseTrackerAnnotation, Matrix4> lastAnnotations, required LinkedHashMap<MouseTrackerAnnotation, Matrix4> nextAnnotations, required PointerEvent? previousEvent})
When device update is triggered by a new frame. [...]
const
MouseTrackerUpdateDetails.byPointerEvent({required LinkedHashMap<MouseTrackerAnnotation, Matrix4> lastAnnotations, required LinkedHashMap<MouseTrackerAnnotation, Matrix4> nextAnnotations, PointerEvent? previousEvent, required PointerEvent triggeringEvent})
When device update is triggered by a pointer event. [...]
const

Properties

device int
The pointing device of this update.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
lastAnnotations LinkedHashMap<MouseTrackerAnnotation, Matrix4>
The annotations that the device is hovering before the update. [...]
final
latestEvent PointerEvent
The last event that the device observed after the update. [...]
read-only
nextAnnotations LinkedHashMap<MouseTrackerAnnotation, Matrix4>
The annotations that the device is hovering after the update. [...]
final
previousEvent PointerEvent?
The last event that the device observed before the update. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
triggeringEvent PointerEvent?
The event that triggered this update. [...]
final

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
override
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
Returns a string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode. [...]
inherited

Operators

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