ZIMLoginConfig class
Configuration of login-related parameters.
Supported version: 2.13.0 and above. Description: Login-related parameters. Use cases: Used to set different parameters during login.
Constructors
- ZIMLoginConfig({String userName = '', String token = '', bool isOfflineLogin = false, String customStatus = ''})
- ZIMLoginConfig.fromMap(Map map)
Properties
- customStatus ↔ String
-
Description: Custom status.Use cases: Only pass this parameter when you need to customize the user status during login.Required: No.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOfflineLogin ↔ bool
-
Description: Whether it is offline login.Use cases: Set this parameter to true when performing offline login.Required: No.Default value: false.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token ↔ String
-
Description: Token carried during login.Use cases: Only pass this parameter in the scenario where token is used for authentication.Required: No.
getter/setter pair
- userName ↔ String
-
Description: User name.Use cases: Used in the scenario where user nickname is modified during login, leave it blank if no change is needed.Required: No.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited