File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,8 @@ class UpdateField extends Field {
250
250
/// - [Type.stringify] (`string*` ) is a way to store the field value (both
251
251
/// singular and multi-value/array values) as string.
252
252
///
253
- /// [Type.geopoint] is used to index locations, filter and sort on them.
253
+ /// [Type.geopoint] and [Type.geopolygon] are used to index locations, filter
254
+ /// and sort on them.
254
255
enum Type {
255
256
string,
256
257
int32,
@@ -260,6 +261,7 @@ enum Type {
260
261
auto,
261
262
stringify,
262
263
geopoint,
264
+ geopolygon,
263
265
object,
264
266
}
265
267
@@ -272,6 +274,7 @@ extension _Type on Type {
272
274
case Type .float:
273
275
case Type .bool :
274
276
case Type .geopoint:
277
+ case Type .geopolygon:
275
278
case Type .object:
276
279
final description = toString (),
277
280
indexOfDot = description.indexOf ('.' ),
@@ -288,8 +291,10 @@ extension _Type on Type {
288
291
}
289
292
290
293
static Type fromValue (String value, bool isMultiValued) =>
291
- Type .values.firstWhere ((type) => value == type.value (isMultiValued),
292
- orElse: () => throw ArgumentError ('$value is not a defined Type.' ));
294
+ Type .values.firstWhere (
295
+ (type) => value == type.value (isMultiValued),
296
+ orElse: () => throw ArgumentError ('$value is not a defined Type.' ),
297
+ );
293
298
}
294
299
295
300
final _multivaluedExpression = RegExp (r'\[\]$' );
You can’t perform that action at this time.
0 commit comments