status property

Stream<AuthenticationStatus> status

Implementation

Stream<AuthenticationStatus> get status async* {
  final String? token = await tokenLocalDataSource.readToken();
  if (token != null) {
    yield AuthenticationStatus.authenticated;
  } else {
    yield AuthenticationStatus.unauthenticated;
  }
  yield* _controller.stream;
}