NubrickUser class

A class to handle NubrickUser.

reference: https://docs.nativebrik.com/reference/flutter/nativebrikuser

Usage:

// Set Custom User Properties
// Values support [String], [int], [double], [DateTime], [bool].
NubrickUser.instance.setProperties({
  'prefecture': 'Tokyo',
  'test_user': true,
  'environment': const bool.fromEnvironment('dart.vm.product')
      ? 'production'
      : 'development',
});

Constructors

NubrickUser()
Creates a new instance of NubrickUser.
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 NubrickUser
The singleton instance of NubrickUser.
no setter