GetPricesModel class

Model that stores what we need to know for "get latest prices" queries.

Constructors

GetPricesModel({required GetPricesParameters parameters, required Uri uri, required String title, bool displayEachOwner = true, bool displayEachProduct = true, bool displayEachLocation = true, LazyCounterPrices? lazyCounterPrices, bool enableCountButton = true, String? subtitle, VoidCallback? addButton})
const
GetPricesModel.product({required PriceMetaProduct product, required BuildContext context})
Gets latest prices for a product.
factory

Properties

addButton → VoidCallback?
"Add a price" callback.
final
displayEachLocation → bool
Should we display the location for each price? No if it's a location query.
final
displayEachOwner → bool
Should we display the owner for each price? No if it's an owner query.
final
displayEachProduct → bool
Should we display the product for each price? No if it's a product query.
final
enableCountButton → bool
"Enable the count button?". Typically "false" for product price pages.
final
hashCode → int
The hash code for this object.
no setterinherited
lazyCounterPrices → LazyCounterPrices?
Lazy Counter to refresh.
final
parameters → GetPricesParameters
Query parameters.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subtitle → String?
Page subtitle.
final
title → String
Page title.
final
uri → Uri
Related web app URI.
final

Methods

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

Static Methods

getStandardPricesParameters() → GetPricesParameters