Drag class

Represents a drag operation within a map editor.

Constructors

Drag.fromLine(List<LatLng> originLine, LatLng destination)
Creates a Drag instance for dragging a line.
factory
Drag.fromPoint(LatLng originPoint, LatLng destination)
Creates a Drag instance for dragging a point.
factory

Properties

destination LatLng
The current destination point of the drag operation.
final
hashCode int
The hash code for this object.
no setterinherited
originLine List<LatLng>?
The original line being dragged, if applicable.
final
originPoint LatLng?
The original point being dragged, if applicable.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type DragType
The type of drag operation (either dragging a point or a line).
final

Methods

copyWith({DragType? type, LatLng? originPoint, List<LatLng>? originLine, LatLng? destination}) Drag
Creates a copy of this Drag instance with optional modifications.
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