login method Null safety

Future<void> login()

Open a login page and retrieve an authorization code. If the user has already signed in before, simply authorize the Reddit singleton.

Implementation

Future<void> login() async {
  await reddit.login();
  _stateStream.add(AuthenticationStatus.authenticated);
}