logIn method

Future<Result<OAuthToken>> logIn()

Implementation

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