mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-12 01:09:35 -04:00
18 lines
493 B
Dart
18 lines
493 B
Dart
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
|
|
enum GlobalConnectionState {
|
|
detached,
|
|
detaching,
|
|
attaching,
|
|
attachedWeak,
|
|
attachedGood,
|
|
attachedStrong,
|
|
fullyAttached,
|
|
overAttached,
|
|
}
|
|
|
|
final globalConnectionState =
|
|
StateController<GlobalConnectionState>(GlobalConnectionState.detached);
|
|
final globalConnectionStateProvider = AutoDisposeStateNotifierProvider<
|
|
StateController<GlobalConnectionState>,
|
|
GlobalConnectionState>((ref) => globalConnectionState);
|