setUserProperty method

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

Implementation

@override
Future<void> setUserProperty(String key, Object value) async {
  try {
    final Map<String, Object?> arguments = {
      Argument.userPropertyKey.value: key,
      Argument.userPropertyValue.value: value,
    };

    return methodChannel.invokeMethod(
        Method.setUserProperty.value, arguments);
  } catch (e) {
    log("Failed to setUserProperty", level: 3, error: e);
  }
}