logInWithKakaoAccount method

Future<Result<OAuthToken>> logInWithKakaoAccount()

Implementation

Future<Result<OAuthToken>> logInWithKakaoAccount() async {
  try {
    final result = await _channel
        .invokeMapMethod<String, dynamic>('logInWithKakaoAccount');
    return Result.value(OAuthToken.fromJson(result!));
  } on PlatformException catch (e) {
    return Result.error(KakaoSdkError.fromPlatformException(e));
  }
}