From 62bf652eba889eced2ab96d1fff3c501ada02faa Mon Sep 17 00:00:00 2001 From: Max Lapides Date: Mon, 28 Jul 2025 15:26:09 -0700 Subject: [PATCH] fix: typos --- lib/mapcontrol_platform_interface.dart | 4 ++-- lib/models/enums/mp_camera_event.dart | 2 +- ...ion_propery_names.dart => mp_location_property_names.dart} | 0 lib/models/mp_display_rule.dart | 2 +- lib/platform_library.dart | 2 +- lib/src/directionsservice_method_channel.dart | 2 +- lib/src/mapcontrol_method_channel.dart | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) rename lib/models/enums/{mp_location_propery_names.dart => mp_location_property_names.dart} (100%) diff --git a/lib/mapcontrol_platform_interface.dart b/lib/mapcontrol_platform_interface.dart index 6928066..3349594 100644 --- a/lib/mapcontrol_platform_interface.dart +++ b/lib/mapcontrol_platform_interface.dart @@ -58,8 +58,8 @@ abstract class MapcontrolPlatform extends PlatformInterface { Future disableLiveData(String domainType); Future setHiddenFeatures(List features); Future> getHiddenFeatures(); - void addOnCameraEventListner(MPCameraEventListener listener); - void removeOnCameraEventListner(MPCameraEventListener listener); + void addOnCameraEventListener(MPCameraEventListener listener); + void removeOnCameraEventListener(MPCameraEventListener listener); void addOnFloorUpdateListener(OnFloorUpdateListener listener); void removeOnFloorUpdateListener(OnFloorUpdateListener listener); void setOnCurrentBuildingChangedListener( diff --git a/lib/models/enums/mp_camera_event.dart b/lib/models/enums/mp_camera_event.dart index a85a3db..0e2f408 100644 --- a/lib/models/enums/mp_camera_event.dart +++ b/lib/models/enums/mp_camera_event.dart @@ -1,6 +1,6 @@ part of 'package:mapsindoors_platform_interface/platform_library.dart'; -/// Possible events that a [MPCameraEventListener] can recieve +/// Possible events that a [MPCameraEventListener] can receive enum MPCameraEvent { finished, cancelled, diff --git a/lib/models/enums/mp_location_propery_names.dart b/lib/models/enums/mp_location_property_names.dart similarity index 100% rename from lib/models/enums/mp_location_propery_names.dart rename to lib/models/enums/mp_location_property_names.dart diff --git a/lib/models/mp_display_rule.dart b/lib/models/mp_display_rule.dart index 1402ac7..efa0bcc 100644 --- a/lib/models/mp_display_rule.dart +++ b/lib/models/mp_display_rule.dart @@ -18,7 +18,7 @@ class MPDisplayRule implements DynamicObject { MPDisplayRuleId get id => _id; /// The name of the display rule - String get dispalyRuleName => _id.value; + String get displayRuleName => _id.value; /// Get the general visibility value Future isVisible() => DisplayRulePlatform.instance.isVisible(id); diff --git a/lib/platform_library.dart b/lib/platform_library.dart index 9500471..cec4905 100644 --- a/lib/platform_library.dart +++ b/lib/platform_library.dart @@ -39,7 +39,7 @@ part 'models/entities/mp_floor.dart'; part 'models/entities/mp_location.dart'; part 'models/enums/mp_collision_handling.dart'; -part 'models/enums/mp_location_propery_names.dart'; +part 'models/enums/mp_location_property_names.dart'; part 'models/enums/mp_location_type.dart'; part 'models/enums/mp_solution_display_rule.dart'; part 'models/enums/mp_camera_event.dart'; diff --git a/lib/src/directionsservice_method_channel.dart b/lib/src/directionsservice_method_channel.dart index d2d4ea8..1a4a970 100644 --- a/lib/src/directionsservice_method_channel.dart +++ b/lib/src/directionsservice_method_channel.dart @@ -47,7 +47,7 @@ class MethodChannelDirectionsService extends DirectionsServicePlatform { } else { return Future.error(MPError( code: MPError.unknownError, - message: "Did not receieve route object from Platform")); + message: "Did not receive route object from Platform")); } } diff --git a/lib/src/mapcontrol_method_channel.dart b/lib/src/mapcontrol_method_channel.dart index c27415d..76e779d 100644 --- a/lib/src/mapcontrol_method_channel.dart +++ b/lib/src/mapcontrol_method_channel.dart @@ -341,7 +341,7 @@ class MethodChannelMapControl extends MapcontrolPlatform { } @override - void addOnCameraEventListner(MPCameraEventListener listener) { + void addOnCameraEventListener(MPCameraEventListener listener) { if (_cameraEventListeners.isEmpty) { listenerChannel .invokeMethod("MPL_cameraEventListener", {"setupListener": true}); @@ -375,7 +375,7 @@ class MethodChannelMapControl extends MapcontrolPlatform { } @override - void removeOnCameraEventListner(MPCameraEventListener listener) { + void removeOnCameraEventListener(MPCameraEventListener listener) { _cameraEventListeners.remove(listener); if (_cameraEventListeners.isEmpty) { listenerChannel