getLoginResult method
Implementation
Future<Result<bool, Exception>> getLoginResult(
Future<pigeon.CommonAuthResult> Function() function) async {
try {
final result = await function.call();
if (result.isSuccess != true) {
return Result.failure(Exception(result.error));
}
return Result.success(true);
} on Exception catch (error) {
return Result.failure(error);
}
}