Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-expose MapControllerImpl #1548

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions lib/src/map/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
///
Expand Down Expand Up @@ -172,9 +171,8 @@ abstract class MapController {
void dispose();
}

@internal
class MapControllerImpl implements MapController {
MapControllerImpl._();
MapControllerImpl();

@override
bool move(
Expand Down