Skip to content

Commit

Permalink
describe no
Browse files Browse the repository at this point in the history
  • Loading branch information
matanshukry committed Aug 17, 2024
1 parent 3e5c0cf commit ea45bec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:flutter/foundation.dart';


/// Available types for a [Place]
///
Expand Down Expand Up @@ -159,7 +159,7 @@ enum PlaceType {

final placeTypeValuesMap = {
for (final placeType in PlaceType.values)
describeEnum(placeType): placeType
placeType.name: placeType
};

extension PlaceTypeDescriptor on PlaceType {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:flutter/foundation.dart';


/// Filter to restrict the result set of autocomplete predictions to certain types.
///
Expand Down Expand Up @@ -58,5 +58,5 @@ enum PlaceTypeFilter {
}

extension PlaceTypeFilterDescriptor on PlaceTypeFilter {
String get value => describeEnum(this);
String get value => name;
}

0 comments on commit ea45bec

Please sign in to comment.