mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-12-16 03:24:22 -05:00
20 lines
478 B
Dart
20 lines
478 B
Dart
import 'package:flutter_riverpod/flutter_riverpod.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();
|