12 lines
361 B
Dart
12 lines
361 B
Dart
import 'package:nearby_service/nearby_service.dart';
|
|
|
|
extension ChannalPreviewName on CommunicationChannelState {
|
|
String get previewName {
|
|
return switch (this) {
|
|
CommunicationChannelState.notConnected => 'Not connected',
|
|
CommunicationChannelState.loading => 'Connecting',
|
|
CommunicationChannelState.connected => 'Connected',
|
|
};
|
|
}
|
|
}
|