I was using flutter 2 and updated to flutter 3. now I have an error in my singleton class
my class is that work fine on flutter 2 is:
class FBServices {
FBServices._privateConstructor();
static final _instance = FBServices._privateConstructor();
factory FBServices(){
return _instance;
}
}
Am using Factory but all I want is to have a one instance of that class all over my app.