SelectionEdgeUpdateEvent class Null safety

Updates a selection edge.

An active selection contains two edges, start and end. Use the type to determine which edge this event applies to. If the type is SelectionEventType.startEdgeUpdate, the event updates start edge. If the type is SelectionEventType.endEdgeUpdate, the event updates end edge.

The globalPosition contains the new offset of the edge.

This event is dispatched when the framework detects DragStartDetails in SelectionArea's gesture recognizers for mouse devices, or the selection handles have been dragged to new locations.

Inheritance

Constructors

SelectionEdgeUpdateEvent.forEnd({required Offset globalPosition})
Creates a selection end edge update event.
const
SelectionEdgeUpdateEvent.forStart({required Offset globalPosition})
Creates a selection start edge update event.
const

Properties

globalPosition Offset
The new location of the selection edge.
final
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
type SelectionEventType
The type of this selection event.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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