getUserAttributes static method

Future<Map<String, String>> getUserAttributes()

A new Map containing all the currently set user attributes, or an empty Map if no user attributes have been set.

Implementation

static Future<Map<String, String>> getUserAttributes() async {
  final userAttributes =
      await _channel.invokeMethod<Map<dynamic, dynamic>>('getUserAttributes');
  return userAttributes != null
      ? Map<String, String>.from(userAttributes)
      : <String, String>{};
}