NativebrikUser class
A class to handle NativebrikUser.
reference: https://docs.nativebrik.com/reference/flutter/nativebrikuser
Usage:
// Set Custom User Properties
// Values support [String], [int], [double], [DateTime], [bool].
NativebrikUser.instance.setProperties({
'prefecture': 'Tokyo',
'test_user': true,
'environment': const bool.fromEnvironment('dart.vm.product')
? 'production'
: 'development',
});
Constructors
- NativebrikUser()
-
Creates a new instance of NativebrikUser.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getId(
) → Future< String?> - Retrieves the current user ID.
-
getProperties(
) → Future< Map< String, String> ?> - Retrieves the current user's properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setProperties(
Map< String, dynamic> properties) → Future<void> - Sets user properties for the current user.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → NativebrikUser
-
The singleton instance of NativebrikUser.
no setter