setUser method

  1. @override
Future<void> setUser(
  1. HackleUser user
)
override

Implementation

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

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