signInWithGoogle method

Future<void> signInWithGoogle({
  1. dynamic callbackSuccess()?,
})

Implementation

Future<void> signInWithGoogle({Function()? callbackSuccess}) async {
  _resetState();
  final result = await signInWithGoogleUseCase.call();
  _stopLoad();

  result.fold((l) {
    currentError.value = l;
  }, (r) {
    //todo successSignIn
    callbackSuccess?.call();
  });
}