pushDonationDropoff method

Future pushDonationDropoff (
  1. DonationDropoff donationDropoff
)

Write a donation dropoff to the database

Implementation

Future<dynamic> pushDonationDropoff(DonationDropoff donationDropoff){

  DatabaseReference dbDepotsRef = FirebaseDatabase.instance.reference().child(
      'DonationDropoffs');
  return dbDepotsRef.push().set(donationDropoff.toMap()).then((value) => null).catchError((error) => error);

}