chore: rename base classes, comments, formatting

This commit is contained in:
ksenia312
2024-02-05 13:25:36 +01:00
parent 4c2360bb27
commit 258cdf0adc
18 changed files with 103 additions and 96 deletions
@@ -4,7 +4,7 @@ import 'package:nearby_service/src/utils/json_decoder.dart';
///
/// A device on a P2P network obtained from the IOS platform.
///
final class NearbyIOSDevice extends NearbyDeviceBase {
final class NearbyIOSDevice extends NearbyDevice {
///
/// A class representing an IOS device on a P2P network.
///
@@ -74,7 +74,7 @@ final class NearbyIOSDevice extends NearbyDeviceBase {
///
class NearbyIOSMapper implements NearbyDeviceMapper {
@override
List<NearbyDeviceBase> mapToDeviceList(dynamic value) {
List<NearbyDevice> mapToDeviceList(dynamic value) {
final decoded = JSONDecoder.decodeList(value);
return [
...?decoded?.map(
@@ -84,7 +84,7 @@ class NearbyIOSMapper implements NearbyDeviceMapper {
}
@override
NearbyDeviceBase? mapToDevice(dynamic value) {
NearbyDevice? mapToDevice(dynamic value) {
final decoded = JSONDecoder.decodeMap(value);
if (decoded == null) return null;