PlacePrediction class
Represents a place prediction from autocomplete
Constructors
-
PlacePrediction.new({required String placeId, required String description, String? mainText, String? secondaryText, List<
String> types = const []}) -
PlacePrediction.fromJson(Map<
String, dynamic> json) -
factory
Properties
- description → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mainText → String?
-
final
- placeId → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryText → String?
-
final
-
types
→ List<
String> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited