I/m facing this issue. Can anyone assist? Thanks First page
Asked
Active
Viewed 7,125 times
1
-
Hi! Please embed your images directly into your question with the help of the markdown editor :) – Jahn E. Jan 13 '22 at 09:45
-
Try `AuthService().user` -- notice the parenthesis. – Michael Hathi Jan 13 '22 at 09:47
1 Answers
5
In order to access a member via static access it needs to be marked as static like so:
static final myStaticFinalVariable;
Alternatively, you must instantiate the class first by creating an instance () to call an instance method.
AuthService().user

Jahn E.
- 1,228
- 3
- 6
- 21