EmulatorDataBackend class

Inheritance

Constructors

EmulatorDataBackend()

Properties

addCardCallable HttpsCallable
read / write, inherited
addPromoCallable HttpsCallable
read / write, inherited
cloudFunc CloudFunctions
read / write, inherited
creditCards List<CreditCard>
read / write, inherited
creditCardsDirty bool
read / write, inherited
creditCardTempaltesDirty bool
read / write, inherited
creditCardTemplates List<CreditCard>
read / write, inherited
deleteAccountCallable HttpsCallable
read / write, inherited
deleteAccountStatus DeleteAccountStatus
TODO(#453): merge it with status
read / write, inherited
getCardsCallable HttpsCallable
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
hasListeners bool
Whether any listeners are currently registered. [...]
@protected, read-only, inherited
removeCardCallable HttpsCallable
read / write, inherited
removePromoCallable HttpsCallable
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status DataBackendStatus
read / write, inherited
token String
Token is use in http requests to perform user authentication and authorization. It is not needed in the in-app API calls since it has been taken care of by the Firebase SDK.
read / write, inherited

Methods

addCreditCard(CreditCardCreationRequest req) Future<void>
inherited
addCreditCardToDatabase(CreditCardCreationRequest req) Future<BackendResponse>
inherited
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes. [...]
inherited
addPromitionToDatabase(PromotionAdditionRequest req) Future<void>
inherited
addPromotion(PromotionAdditionRequest req, {bool silent: false}) Future<void>
inherited
deleteAccount() Future<void>
inherited
deleteAccountFromDatabase() Future<void>
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener and removeListener will throw after the object is disposed). [...]
@mustCallSuper, inherited
fetchCreditCardsFromDatabase() Future<List<CreditCard>>
inherited
forceRefresh() Future<void>
inherited
getCreditCards() List<CreditCard>
inherited
getCreditCardTemplates() List<CreditCard>
inherited
getDeleteAccountStatus() DeleteAccountStatus
inherited
getRankedCreditCardsSync(ShoppingCategory category) List<CreditCard>
inherited
getShopCategories() List<ShoppingCategory>
inherited
getStatus() DataBackendStatus
inherited
initCreditCard(CreditCardCreationRequest req, {bool silent: false}) Future<void>
inherited
initCreditCardInDatabase(CreditCardCreationRequest req) Future<void>
inherited
initCreditCardWithTemplate(CreditCardCreationRequest req) Future<void>
inherited
initCreditCardWithTemplateInDatabase(CreditCardCreationRequest req) Future<void>
inherited
initialize() Future<void>
override
maybeRefresh({bool silent: false}) Future<void>
inherited
maybeRefreshCards({bool silent: false}) Future<void>
inherited
maybeRefreshCreditCardTemplates({bool silent: false}) Future<void>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notifyListeners() → void
Call all the registered listeners. [...]
queryCreditCard(String id) CreditCard
inherited
recoverFromError() Future<void>
inherited
removeCreditCard(CreditCardRemovalRequest req) Future<void>
inherited
removeCreditCardFromDatabase(CreditCardRemovalRequest req) Future<void>
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes. [...]
inherited
removePromotion(PromotionRemovalRequest req) Future<void>
inherited
removePromotionFromDatabase(PromotionRemovalRequest req) Future<void>
inherited
renewCreditCardInfo(CreditCard card) Future<CreditCard>
inherited
setToken(String tokenVal) → void
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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