PlusCode class sealed
Plus Code, or Open Location Code (OLC), is a geocode system for identifying any geographical area on Earth, even when a street address does not exist.
- Annotations
-
- @freezed
Constructors
- PlusCode.new({required String compoundCode, required String globalCode})
-
Constructs a PlusCode object.
constfactory
-
PlusCode.fromJson(Map<
String, Object?> json) -
Parse an PlusCode from json.
factory
Properties
- compoundCode → String
-
The compound plus code, e.g. "9G8F+5W Zurich, Switzerland".
no setterinherited
-
copyWith
→ $PlusCodeCopyWith<
PlusCode> -
Create a copy of PlusCode
with the given fields replaced by the non-null parameter values.
no setterinherited
- globalCode → String
-
The geo plus code, e.g. "8FVC9G8F+5W".
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this PlusCode to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited