Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions lib/models/location_context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Context {
required this.postcode,
this.district,
required this.place,
this.locality,
this.neighborhood,
this.street,
});
Expand All @@ -19,6 +20,7 @@ class Context {
final Place? postcode;
final Place? district;
final Place? place;
final Place? locality;
final Neighborhood? neighborhood;
final Neighborhood? street;

Expand Down Expand Up @@ -51,12 +53,7 @@ class Country {

@JsonSerializable()
class Region {
Region({
this.id,
this.name,
this.regionCode,
this.regionCodeFull,
});
Region({this.id, this.name, this.regionCode, this.regionCodeFull});

final String? id;
final String? name;
Expand All @@ -70,9 +67,7 @@ class Region {

@JsonSerializable()
class Neighborhood {
Neighborhood({
required this.name,
});
Neighborhood({required this.name});

final String name;

Expand All @@ -84,10 +79,7 @@ class Neighborhood {

@JsonSerializable()
class Place {
Place({
this.id,
required this.name,
});
Place({this.id, required this.name});

final String? id;
final String name;
Expand Down
4 changes: 4 additions & 0 deletions lib/models/location_context.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mapbox_search
description: A Flutter package for place search using MapBox Api and for Static map image
version: 4.4.0
version: 4.4.1

homepage: https://github.com/ketanchoyal/mapbox_search

Expand Down