getUser method

  1. @override
Future<HackleUser> getUser()
override

Implementation

@override
Future<HackleUser> getUser() async {
  try {
    final Map<dynamic, dynamic> result =
        await methodChannel.invokeMethod(Method.getUser.value);

    return result.toHackleUser();
  } catch (e) {
    log("Failed to getUser", level: 3, error: e);
    rethrow;
  }
}