setUser abstract method

Future<StreamUser> setUser(
  1. User user,
  2. Token userToken, {
  3. Map<String, Object?>? extraData,
})

Sets the currentUser assigned to StreamFeedClient

If extraData is passed in, the user will be created with that data. If extraData is null, then User.data will be used, from user.

The data will only be set the first time the user is created. Updates after a user is created needs to be performed with updateUser.

This method calls StreamUser.getOrCreate underneath.

Implementation

Future<StreamUser> setUser(
  User user,
  Token userToken, {
  Map<String, Object?>? extraData,
});