onAcceptRequest method

dynamic onAcceptRequest(
  1. double lat,
  2. double lng
)

Implementation

onAcceptRequest(double lat, double lng) async {
  DriverLocation driverLocation = DriverLocation(lat: lat, lng: lng);
  await RFN.Firestore.Create(
      driverLocation, "b002b576-01f8-44ad-b543-224007d301a4");

  // rfn.firestore
  //     .addDataChangeListner(DriverLocation, "111", (event) => {debugPrint(event)});
  // rfn.firestore
  //     .addDataChangeListner(DriverLocation, "124", (event) => {debugPrint(event)});
}