From a4eb44c7174e7d3dbc20175ef2f4ed186b3e49f9 Mon Sep 17 00:00:00 2001 From: Josef Nilsen Date: Tue, 6 Jun 2023 23:04:54 +0200 Subject: [PATCH] Expose MapControllerImpl constructor --- lib/src/map/controller.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/src/map/controller.dart b/lib/src/map/controller.dart index 9a481b4ed..760d9927b 100644 --- a/lib/src/map/controller.dart +++ b/lib/src/map/controller.dart @@ -4,7 +4,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_map/flutter_map.dart'; import 'package:flutter_map/src/map/state.dart'; import 'package:latlong2/latlong.dart'; -import 'package:meta/meta.dart'; /// Controller to programmatically interact with [FlutterMap], such as /// controlling it and accessing some of its properties. @@ -20,7 +19,7 @@ abstract class MapController { /// instance. /// /// Factory constructor redirects to underlying implementation's constructor. - factory MapController() = MapControllerImpl._; + factory MapController() = MapControllerImpl; /// Moves and zooms the map to a [center] and [zoom] level /// @@ -172,9 +171,8 @@ abstract class MapController { void dispose(); } -@internal class MapControllerImpl implements MapController { - MapControllerImpl._(); + MapControllerImpl(); @override bool move(