setUserId method

  1. @override
Future<void> setUserId(
  1. String? userId
)
override

Implementation

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

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