feat(example_full): create example representing the whole plugin functional
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user