getUser abstract method

Future<User> getUser(
  1. String token, {
  2. String? id,
})

Fetches the data for a given user.

If id is not provided, the data for the user associated with the token is fetched.

Implementation

Future<User> getUser(String token, {String? id});