doc(lib): comments for some API

This commit is contained in:
ksenia312
2024-01-31 22:34:41 +01:00
parent 04b261361a
commit 093a23145f
4 changed files with 14 additions and 0 deletions
@@ -134,6 +134,9 @@ class NearbyAndroidDevice extends NearbyDevice {
}
}
///
/// Implementation of [NearbyDeviceMapper] for Android.
///
class NearbyAndroidMapper implements NearbyDeviceMapper {
@override
List<NearbyDevice> mapToDeviceList(dynamic value) {
@@ -19,6 +19,10 @@ class NearbyAndroidService extends NearbyService {
return _socketService.state;
}
///
/// The connection information of a Wi-Fi p2p group connection
/// from the socket service.
///
NearbyConnectionAndroidInfo? get connectionInfo {
return _socketService.connectionInfo;
}
@@ -69,6 +69,9 @@ class NearbyIOSDevice extends NearbyDevice {
}
}
///
/// Implementation of [NearbyDeviceMapper] for IOS.
///
class NearbyIOSMapper implements NearbyDeviceMapper {
@override
List<NearbyDevice> mapToDeviceList(dynamic value) {
@@ -80,6 +80,10 @@ class NearbyAndroidCommunicationChannelData {
/// Listener of events that come to the server.
///
final ValueChanged<HttpRequest>? serverListener;
///
/// The port on which the socket will be created.
///
final int port;
@override