Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Initial tool migration plus trivial cleanup
  • Loading branch information
stuartmorgan-g committed Feb 10, 2021
commit b3f8de03175ae137f6886478fa5d582c58b82bee
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class MapEvent<T> {
/// A `MapEvent` associated to a `position`.
class _PositionedMapEvent<T> extends MapEvent<T> {
/// The position where this event happened.
final LatLng/*!*/ position;
final LatLng position;

/// Build a Positioned MapEvent, that relates a mapId and a position with a value.
///
Expand All @@ -73,11 +73,11 @@ class CameraMoveStartedEvent extends MapEvent<void> {
}

/// An event fired while the Camera of a [mapId] moves.
class CameraMoveEvent extends MapEvent<CameraPosition/*!*/> {
class CameraMoveEvent extends MapEvent<CameraPosition> {
/// Build a CameraMove Event triggered from the map represented by `mapId`.
///
/// The `value` of this event is a [CameraPosition] object with the current position of the Camera.
CameraMoveEvent(int mapId, CameraPosition/*!*/ position) : super(mapId, position);
CameraMoveEvent(int mapId, CameraPosition position) : super(mapId, position);
}

/// An event fired when the Camera of a [mapId] becomes idle.
Expand Down Expand Up @@ -141,13 +141,13 @@ class MapTapEvent extends _PositionedMapEvent<void> {
/// Build an MapTap Event triggered from the map represented by `mapId`.
///
/// The `position` of this event is the LatLng where the Map was tapped.
MapTapEvent(int mapId, LatLng/*!*/ position) : super(mapId, position, null);
MapTapEvent(int mapId, LatLng position) : super(mapId, position, null);
}

/// An event fired when a Map is long pressed.
class MapLongPressEvent extends _PositionedMapEvent<void> {
/// Build an MapTap Event triggered from the map represented by `mapId`.
///
/// The `position` of this event is the LatLng where the Map was long pressed.
MapLongPressEvent(int mapId, LatLng/*!*/ position) : super(mapId, position, null);
MapLongPressEvent(int mapId, LatLng position) : super(mapId, position, null);
}
Loading