PlaceSearchResponse class

Una página de resultados de búsqueda.

Lleva el nextToken dentro porque paginar es la parte que más se olvida: una lista que solo enseña los primeros diez resultados y nunca los siguientes parece que funciona.

Annotations
  • @immutable

Constructors

PlaceSearchResponse({List<Place> places = const <Place>[], String? nextToken, String? pricingBucket})
Crea la página.
const
PlaceSearchResponse.fromJson(Map<String, dynamic> json)
Lee la página de la respuesta del servicio.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
hasMore bool
¿Hay más páginas?
no setter
isEmpty bool
¿Vino vacía?
no setter
isNotEmpty bool
¿Trae algo?
no setter
length int
Cuántos resultados trae esta página.
no setter
nextToken String?
El testigo para pedir la siguiente página, o null si no hay más.
final
places List<Place>
Los resultados de esta página.
final
pricingBucket String?
El tramo de precio que aplicó AWS.
final
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
toString() String
A string representation of this object.
override

Operators

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