RouteNotifier class
Notifier to work with two or more points in RouteSearchBox.
- Inheritance
-
- Object
- ChangeNotifier
- RouteNotifier
Constructors
- RouteNotifier()
- Constructor for RouteNotifier.
Properties
- destination → Address?
-
Destination point of a route.
no setter
- destinationController → TextEditingController
-
Controller for text used to search an Address.
no setter
- geoMethods → GeoMethods
-
GeoMethods instance to use Google APIs.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- origin → Address?
-
Origin point of a route.
no setter
- originController → TextEditingController
-
Controller for text used to search an Address.
no setter
- routeFound → Directions?
-
Latest route directions found.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
waypoints
→ List<
Address> -
Points beetwen origin and destination of a route.
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
addWaypoint(
Address address) → void - Adds an Address to the List of waypoints.
-
addWaypoints(
Iterable< Address> addressList) → void - Adds an Iterable<Address> to the List of waypoints.
-
clearWaypoints(
) → void - Clear the List of waypoints.
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
findRoute(
) → Future< Directions> - Gets route directions if the origin and destination are set.
-
initRouteNotifier(
GeoMethods geoMethods, TextEditingController originController, TextEditingController destinationController, {List< LocationSetter> locationSetters = const <LocationSetter>[]}) → void -
Initialize the RouteNotifier.
It's needed to can use the other
provider
methods. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
relocate(
AddressId addressId, Coords coords) → Future< Address> - Finds a new Address by Coords and sets it where AddressId declares.
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
removeWaypointAt(
int index) → void - Remove an Address waypoint.
-
reorderWaypoint(
int oldIndex, int newIndex) → void - Reorder an Address waypoint.
-
setLocation(
AddressId addressId, Address address) → Future< void> - Sets a new Address where AddressId declares.
-
setWaypoints(
Iterable< Address> addressList) → void - Sets waypoints as a new List of Address.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateWaypoint(
int index, Address address) → void - Updates an Address waypoint.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited