mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-12-16 11:34:24 -05:00
19 lines
493 B
Dart
19 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);
|