mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-12-16 19:44:28 -05:00
19 lines
469 B
Dart
19 lines
469 B
Dart
import 'package:riverpod/src/stream_provider.dart';
|
|
|
|
import '../tools/tools.dart';
|
|
|
|
enum ConnectionState {
|
|
detached,
|
|
detaching,
|
|
attaching,
|
|
attachedWeak,
|
|
attachedGood,
|
|
attachedStrong,
|
|
fullyAttached,
|
|
overAttached,
|
|
}
|
|
|
|
ExternalStreamState<ConnectionState> globalConnectionState =
|
|
ExternalStreamState<ConnectionState>(ConnectionState.detached);
|
|
AutoDisposeStreamProvider<ConnectionState> globalConnectionStateProvider = globalConnectionState.provider();
|