Skip to content

Commit

Permalink
Null safety
Browse files Browse the repository at this point in the history
  • Loading branch information
JCKodel authored Mar 9, 2021
1 parent e26df0e commit 13da3a9
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions lib/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import 'package:meta/meta.dart';
class Coordinates {

/// The geographic coordinate that specifies the north–south position of a point on the Earth's surface.
final double latitude;
final double? latitude;

/// The geographic coordinate that specifies the east-west position of a point on the Earth's surface.
final double longitude;
final double? longitude;

Coordinates(this.latitude, this.longitude);

Expand All @@ -28,40 +28,40 @@ class Coordinates {
@immutable
class Address {
/// The geographic coordinates.
final Coordinates coordinates;
final Coordinates? coordinates;

/// The formatted address with all lines.
final String addressLine;
final String? addressLine;

/// The localized country name of the address.
final String countryName;
final String? countryName;

/// The country code of the address.
final String countryCode;
final String? countryCode;

/// The feature name of the address.
final String featureName;
final String? featureName;

/// The postal code.
final String postalCode;
final String? postalCode;

/// The administrative area name of the address
final String adminArea;
final String? adminArea;

/// The sub-administrative area name of the address
final String subAdminArea;
final String? subAdminArea;

/// The locality of the address
final String locality;
final String? locality;

/// The sub-locality of the address
final String subLocality;
final String? subLocality;

/// The thoroughfare name of the address
final String thoroughfare;
final String? thoroughfare;

/// The sub-thoroughfare name of the address
final String subThoroughfare;
final String? subThoroughfare;

Address({this.coordinates, this.addressLine, this.countryName, this.countryCode, this.featureName, this.postalCode, this.adminArea, this.subAdminArea, this.locality, this.subLocality, this.thoroughfare, this.subThoroughfare});

Expand Down Expand Up @@ -95,4 +95,4 @@ class Address {
"thoroughfare": this.thoroughfare,
"subThoroughfare": this.subThoroughfare,
};
}
}

0 comments on commit 13da3a9

Please sign in to comment.