This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[google_maps_flutter] Updates platform interface to new analysis options #5793
Merged
fluttergithubbot
merged 9 commits into
flutter:main
from
stuartmorgan-g:analysis-maps-platform-interface
May 23, 2022
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9940e6d
Remove legacy analysis
stuartmorgan-g 4ee7076
Fix tool to allow empty config file
stuartmorgan-g 650de45
Sort constructors first
stuartmorgan-g 9e9cefe
dart fix
stuartmorgan-g fe0f0dc
manual fixes
stuartmorgan-g 7dfaf40
format
stuartmorgan-g bac10af
version bump
stuartmorgan-g f2b4c61
Merge branch 'main' into analysis-maps-platform-interface
stuartmorgan-g 65363e6
Object? instead of dynamic
stuartmorgan-g File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
manual fixes
- Loading branch information
commit fe0f0dc864c32c19576fe1af397b488d6b46f027
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,9 +2,11 @@ | |||||
| // Use of this source code is governed by a BSD-style license that can be | ||||||
| // found in the LICENSE file. | ||||||
|
|
||||||
| import 'package:flutter/foundation.dart' show visibleForTesting; | ||||||
| import 'package:flutter/foundation.dart' | ||||||
| show immutable, objectRuntimeType, visibleForTesting; | ||||||
|
|
||||||
| /// A pair of latitude and longitude coordinates, stored as degrees. | ||||||
| @immutable | ||||||
| class LatLng { | ||||||
| /// Creates a geographical location specified in degrees [latitude] and | ||||||
| /// [longitude]. | ||||||
|
|
@@ -40,16 +42,19 @@ class LatLng { | |||||
| return null; | ||||||
| } | ||||||
| assert(json is List && json.length == 2); | ||||||
| final List list = json as List; | ||||||
| return LatLng(list[0], list[1]); | ||||||
| final List<dynamic> list = json as List<dynamic>; | ||||||
|
||||||
| final List<dynamic> list = json as List<dynamic>; | |
| final List<Object?> list = json as List<Object?>; |
No need to keep dynamic around?
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, fixed. I think I just got burned enoughby careless removal of dynamic from plugin code early on that I'm still slightly nervous about it :)
Member
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had forgotten about this one 🤦
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one may actually be legacy after my first cleanup. After we do the rest of the cleanup we should mark things weren't not using ourselves now as deprecated.