setUserProperty static method

Future<void> setUserProperty(
  1. String key,
  2. String value
)

This method is used for setting more user Properties that will be present and also unique to that user.

key is String value is String

eg: setUserProperty('username', 'john')

Implementation

static Future<void> setUserProperty(String key, String value) async {
  await _channel
      .invokeMethod('setUserProperty', {"key": key, "value": value});
}