setAttribute method

Future<bool> setAttribute({
  1. required Map<String, dynamic> attributes,
  2. required FmeUserContext context,
})

Sets user attributes. Returns false if the SDK is not initialized.

Implementation

Future<bool> setAttribute({
  required Map<String, dynamic> attributes,
  required FmeUserContext context,
}) async {
  final plugin = fmePlugin;
  if (plugin == null) return false;
  return plugin.setAttribute(attributes: attributes, userContext: context);
}