Mpost class

Implemented types

Constructors

Mpost(String apikey)
SDK Initialization String apikey - The API key you obtained after creating account Return new Mpost Object

Properties

controller MpostController
getter/setter pairoverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculateDistance(DistanceRequest distanceRequest) Future<Distance>
calculateDistance Takes DistanceRequest distanceRequest - The objcect with pickup and delivery address return new Distance Object
override
createDeliveryRequest(NewDeliveryRequest deliveryRequest) Future<DeliveryRequest>
createDeliveryRequest Returns new DeliveryRequest Object
override
getDeliveryRequest(int id) Future<DeliveryRequest>
@Param int id - The delivery request id @Return new DeliveryRequest Object
override
getDeliveryRequests() Future<List<DeliveryRequest>>
Return a list List of all DeliveryRequest for the account
override
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