MethodChannelHavinGenerateUserid class

An implementation of HavinGenerateUseridPlatform that uses method channels.

Inheritance

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearUserId() → Future<bool>
Clears the stored User ID from secure storage.
override
getPlatformVersion() → Future<String?>
override
getUserId() → Future<String?>
Gets the unique User ID. If no ID exists, a new UUIDv4 is generated, saved securely, and returned.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
regenerateUserId() → Future<String?>
Generates a new unique User ID, overwrites the existing one in secure storage, and returns it.
override
setUserId(String userId) → Future<bool>
Sets a custom User ID in secure storage.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited