token property

String? token

Implementation

String? get token => map(
      initial: (_) => null,
      authenticated: (state) => state.token,
      unauthenticated: (_) => null,
    );