From ea45becbefaf7220ac3771c4ed5b02496c7a209f Mon Sep 17 00:00:00 2001 From: Matan Shukry Date: Sat, 17 Aug 2024 10:43:22 +0300 Subject: [PATCH] describe no --- .../lib/src/types/place_type.dart | 4 ++-- .../lib/src/types/place_type_filter.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flutter_google_places_sdk_platform_interface/lib/src/types/place_type.dart b/flutter_google_places_sdk_platform_interface/lib/src/types/place_type.dart index 7b3595f..c7f41cb 100644 --- a/flutter_google_places_sdk_platform_interface/lib/src/types/place_type.dart +++ b/flutter_google_places_sdk_platform_interface/lib/src/types/place_type.dart @@ -1,4 +1,4 @@ -import 'package:flutter/foundation.dart'; + /// Available types for a [Place] /// @@ -159,7 +159,7 @@ enum PlaceType { final placeTypeValuesMap = { for (final placeType in PlaceType.values) - describeEnum(placeType): placeType + placeType.name: placeType }; extension PlaceTypeDescriptor on PlaceType { diff --git a/flutter_google_places_sdk_platform_interface/lib/src/types/place_type_filter.dart b/flutter_google_places_sdk_platform_interface/lib/src/types/place_type_filter.dart index d578824..598deba 100644 --- a/flutter_google_places_sdk_platform_interface/lib/src/types/place_type_filter.dart +++ b/flutter_google_places_sdk_platform_interface/lib/src/types/place_type_filter.dart @@ -1,4 +1,4 @@ -import 'package:flutter/foundation.dart'; + /// Filter to restrict the result set of autocomplete predictions to certain types. /// @@ -58,5 +58,5 @@ enum PlaceTypeFilter { } extension PlaceTypeFilterDescriptor on PlaceTypeFilter { - String get value => describeEnum(this); + String get value => name; }