logOut method Null safety

Future<void> logOut()

Signs out the current user.

Emits an unauthenticated status if successful.

Implementation

Future<void> logOut() async {
  await _storageProvider.removeCode();
  await _storageProvider.removeToken();
  _controller.add(AuthenticationStatus.unauthenticated);
}