mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-12-27 16:49:24 -05:00
20 lines
508 B
Dart
20 lines
508 B
Dart
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
|
|
import '../tools/tools.dart';
|
|
|
|
enum GlobalConnectionState {
|
|
detached,
|
|
detaching,
|
|
attaching,
|
|
attachedWeak,
|
|
attachedGood,
|
|
attachedStrong,
|
|
fullyAttached,
|
|
overAttached,
|
|
}
|
|
|
|
ExternalStreamState<GlobalConnectionState> globalConnectionState =
|
|
ExternalStreamState<GlobalConnectionState>(GlobalConnectionState.detached);
|
|
AutoDisposeStreamProvider<GlobalConnectionState> globalConnectionStateProvider =
|
|
globalConnectionState.provider();
|