veilidchat/lib/providers/connection_state.dart
Christien Rioux 9fa1666e8b lint cleanup
2023-07-26 17:42:11 -04:00

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