PlaceState class

Represents the state of the place search and display feature.

Constructors

PlaceState({bool isShow = false, String queryString = '', List<Place> places = const [], StatusFetchData status = StatusFetchData.initial, String? error})
Creates a PlaceState instance with the specified initial values.
const

Properties

error String?
An error message if the search operation failed, or null if successful.
final
hashCode int
The hash code for this object.
no setterinherited
isShow bool
Indicates whether the search places field is visible.
final
places List<Place>
The list of places retrieved from the search, or an empty list if none found.
final
queryString String
The current search query string entered by the user.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status StatusFetchData
The current status of the search operation (initial, fetching, fetched, or error).
final

Methods

copyWith({bool? isShow, String? queryString, List<Place>? places, StatusFetchData? status, String? error}) PlaceState
Creates a copy of the PlaceState with optional modifications.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited