veilidchat/lib/providers/connection_state.dart
Christien Rioux 6e8725f569 lint work
2023-07-26 14:20:29 -04:00

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();