onDeviceGameServerClient top-level property
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],
);