feat(example_full, lib, android): optimisation improving, current device data
This commit is contained in:
@@ -2,4 +2,14 @@
|
||||
/// The status of the communication channel for data exchange.
|
||||
/// Use it to determine if you can send data over the communication channel or not.
|
||||
///
|
||||
enum CommunicationChannelState { notConnected, loading, connected }
|
||||
enum CommunicationChannelState {
|
||||
notConnected,
|
||||
loading,
|
||||
connected;
|
||||
|
||||
bool get isNotConnected => this == CommunicationChannelState.notConnected;
|
||||
|
||||
bool get isLoading => this == CommunicationChannelState.loading;
|
||||
|
||||
bool get isConnected => this == CommunicationChannelState.connected;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user