init method

void init(
  1. GeoCodingResponse pickup,
  2. GeoCodingResponse dropoff,
  3. BuildContext context
)

Implementation

void init(GeoCodingResponse pickup, GeoCodingResponse dropoff,
    BuildContext context) {
  // RFN = RapidFireNavigator(LibsRF.instance.IConfig!,
  //     Controller: mapController, OnMapTap: (double lat, double lng) {},onPointerUp: (lat, lng) {

  //     },);
  status = RequestStatus.notstarted;
  vehicleList = [
    VehicleCard(
        isSelected: true,
        image: "assets/motorbike.png",
        name: "Bike",
        distnace: bikeDuration,
        price: 120),
    VehicleCard(
        isSelected: false,
        image: "assets/car.png",
        name: "Car",
        distnace: carDuration,
        price: 220),
  ];
  drawPoly(pickup, dropoff);
  // initLocation();
}