0

I want to declare a FirebaseUser (from the firebase_auth package), in a reactive way.

Rx<FirebaseUser> firebaseUser = Rx<FirebaseUser>();

But Rx<FirebaseUser>() give me the error

"1 positional argument(s) expected, but 0 found".

Any work around ?

Clid3
  • 9
  • 3

1 Answers1

0

Are you using a null safety version of GetX?

If so, this is probably what you're looking for:

Rxn<User> firebaseUser = Rxn<User>();
Loren.A
  • 4,872
  • 1
  • 10
  • 17