resolveServer method

Future<Server> resolveServer({
  1. bool force = true,
})

Resolves the Server the channel belongs to.

final server = await channel.resolveServer();

If force is set to true, the server will be fetched from the API instead of CacheProviderContract.

final server = await channel.resolveServer(force: true);

Implementation

Future<Server> resolveServer({bool force = true}) => _dataStore.server.get(serverId.value, force);