PensilUser class
Constructors
- PensilUser(AuthService _auth, {String? userToken})
-
Initializes a
UsersClient
session object
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasProfile → bool
-
Returns true if user profile data is not null otherwise false
no setter
- isLoggedIn → bool
-
Returns true if user is loggedin other wise false;
no setter
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - token ↔ Token
-
getter/setter pair
- user ↔ UserModel?
-
getter/setter pair
- userId → String?
-
no setter
- userToken → String?
-
no setter
Methods
-
getUser(
String id) → ResultOrError< UserModel> -
loginWithGoogle(
String uid) → ResultOrError< UserModel> -
loginWithOtp(
int mobile, String countryCode) → ResultOrError< UserModel> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
verifyOTP(
int mobile, int otp) → ResultOrError< UserModel>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited