File tree 2 files changed +14
-14
lines changed
platform_maps_flutter_apple/lib/src
platform_maps_flutter_google_android/lib/src
2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -205,13 +205,13 @@ class _PlatformMapState extends State<_PlatformMap> {
205
205
}
206
206
207
207
apple_maps.MapType _getMapType () {
208
- if (widget.mapType == MapType .normal) {
209
- return apple_maps.MapType .standard;
210
- } else if (widget.mapType == MapType .satellite) {
211
- return apple_maps.MapType .satellite;
212
- } else if (widget.mapType == MapType .hybrid) {
213
- return apple_maps.MapType .hybrid;
208
+ switch (widget.mapType) {
209
+ case MapType .normal:
210
+ return apple_maps.MapType .standard;
211
+ case MapType .satellite:
212
+ return apple_maps.MapType .satellite;
213
+ case MapType .hybrid:
214
+ return apple_maps.MapType .hybrid;
214
215
}
215
- return apple_maps.MapType .standard;
216
216
}
217
217
}
Original file line number Diff line number Diff line change @@ -210,13 +210,13 @@ class _PlatformMapState extends State<_PlatformMap> {
210
210
}
211
211
212
212
google_maps.MapType _getGoogleMapType () {
213
- if (widget.mapType == MapType .normal) {
214
- return google_maps.MapType .normal;
215
- } else if (widget.mapType == MapType .satellite) {
216
- return google_maps.MapType .satellite;
217
- } else if (widget.mapType == MapType .hybrid) {
218
- return google_maps.MapType .hybrid;
213
+ switch (widget.mapType) {
214
+ case MapType .normal:
215
+ return google_maps.MapType .normal;
216
+ case MapType .satellite:
217
+ return google_maps.MapType .satellite;
218
+ case MapType .hybrid:
219
+ return google_maps.MapType .hybrid;
219
220
}
220
- return google_maps.MapType .normal;
221
221
}
222
222
}
You can’t perform that action at this time.
0 commit comments