setUserAttributes method

  1. @override
Future<void> setUserAttributes(
  1. Map<String, dynamic> attributes
)
override

Set user attributes

Implementation

@override
Future<void> setUserAttributes(Map<String, dynamic> attributes) async {
  try {
    await methodChannel.invokeMethod('setUserAttributes', {
      'attributes': attributes,
    });
  } on PlatformException catch (e) {
    throw GrovsException(
      e.message ?? 'Failed to set user attributes',
      code: e.code,
    );
  }
}