Used Flutter 2.2.2 Android studio - 4.2.1
This is my appData.dart file code have error in class address.have issue in save location.
import 'package:flutter/cupertino.dart';
import 'package:riderapp/Models/address.dart';
class AppData extends ChangeNotifier
{
Address pickUpLocation;
void updatePickUpLocationAddress(Address pickUpAddress)
{
pickUpLocation = pickUpAddress;
notifyListeners();
}
}
This is my address.dart file have error in address line
class Address
{
String placeFormattedAddress;
String placeName;
String placeId;
double latitude;
double longitude;
Address({this.placeFormattedAddress, this.placeName, this.placeId, this.latitude, this.longitude});
}