checkToken method

Future<bool> checkToken()

check whether the token is available locally or not.

it will check using shared preferences with key token. if token is not empty return true else empty token return false

Implementation

Future<bool> checkToken() async {
  final result = isToken();
  return result;
}