onDeviceGameServerClient top-level property

Provider<ServerClient> onDeviceGameServerClient
final

Implementation

final onDeviceGameServerClient = Provider<ServerClient>(
  (ref) {
    final client = NoServerClient();
    ref.onDispose(client.dispose);
    scheduleMicrotask(() {
      ref.read(GameProviders.connected.notifier).state = true;
    });
    return client;
  },
  name: 'onDeviceGameServerClient',
  dependencies: [GameProviders.connected.notifier],
);