LineHandler class
- Inheritance
-
- Object
- ChangeNotifier
- GeometryHandler
- LineHandler
Constructors
- LineHandler(MapboxDrawController _controller)
Properties
- controller → MapboxDrawController
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
lines
→ List<
PolylineAnnotation> -
final
- onChange ↔ dynamic Function(GeometryChangeEvent event)?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addLines(
List< LineString> existingLines) → Future<void> -
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
deleteLine(
PolylineAnnotation line) → Future< void> - Deletes a line annotation.
-
dispose(
) → void -
Dispose method to clean up annotation managers.
override
-
finishDrawing(
{bool fromDelete = false}) → Future< void> -
Finishes the line drawing process.
override
-
getAllLines(
) → List< LineString> -
initialize(
MapboxMap mapController, {GeometryStyle? style, dynamic onChange(GeometryChangeEvent event)?}) → Future< void> -
Initializes line-related annotation managers.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
startDrawing(
) → Future< void> -
Starts the line drawing process.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
undoLastAction(
) → Future< void> -
Undoes the last added point and removes the corresponding circle.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited