Skip to content

Commit b0bb793

Browse files
committed
Add const to LatLng
1 parent 565cfb1 commit b0bb793

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

arcgis_map/example/lib/main.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ class ExampleMap extends StatefulWidget {
3838

3939
class _ExampleMapState extends State<ExampleMap> {
4040
static const String _pinId1 = '123';
41-
final LatLng _firstPinCoordinates = LatLng(52.9, 13.2);
41+
final LatLng _firstPinCoordinates = const LatLng(52.9, 13.2);
4242
static const String _pinId2 = '456';
43-
final LatLng _secondPinCoordinates = LatLng(51, 11);
43+
final LatLng _secondPinCoordinates = const LatLng(51, 11);
4444
static const String _pinLayerId = 'PinLayer';
4545
static const String _polygon1 = 'polygon1';
4646
static const String _polygon2 = 'polygon2';
@@ -67,8 +67,8 @@ class _ExampleMapState extends State<ExampleMap> {
6767

6868
bool show3dMap = false;
6969
bool _baseMapToggled = false;
70-
final initialCenter = LatLng(51.16, 10.45);
71-
final tappedHQ = LatLng(48.1234963, 11.5910182);
70+
final initialCenter = const LatLng(51.16, 10.45);
71+
final tappedHQ = const LatLng(48.1234963, 11.5910182);
7272
var _isInteractionEnabled = true;
7373

7474
@override

arcgis_map/example/lib/vector_layer_example_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class _VectorLayerExamplePageState extends State<VectorLayerExamplePage> {
1919
children: [
2020
ArcgisMap(
2121
apiKey: arcGisApiKey,
22-
initialCenter: LatLng(51.16, 10.45),
22+
initialCenter: const LatLng(51.16, 10.45),
2323
zoom: 13,
2424
vectorTileLayerUrls: const [
2525
"https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer",

0 commit comments

Comments
 (0)