DataBackend class
- Inheritance
- Object
- ChangeNotifier
- DataBackend
- Implementers
Constructors
Properties
-
creditCards
↔ List<
CreditCard> -
read / write
- creditCardsDirty ↔ bool
-
read / write
- creditCardTempaltesDirty ↔ bool
-
read / write
-
creditCardTemplates
↔ List<
CreditCard> -
read / write
- deleteAccountStatus ↔ DeleteAccountStatus
-
TODO(#453): merge it with status
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- hasListeners → bool
-
Whether any listeners are currently registered. [...]
@protected, read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- status ↔ DataBackendStatus
-
read / write
- 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
Methods
-
addCreditCard(
CreditCardCreationRequest req) → Future< void> -
addCreditCardToDatabase(
CreditCardCreationRequest req) → Future< void> -
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes. [...]
inherited
-
addPromitionToDatabase(
PromotionAdditionRequest req) → Future< void> -
addPromotion(
PromotionAdditionRequest req, {bool silent: false}) → Future< void> -
deleteAccount(
) → Future< void> -
deleteAccountFromDatabase(
) → Future< void> -
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> > -
forceRefresh(
) → Future< void> -
getCreditCards(
) → List< CreditCard> -
getCreditCardTemplates(
) → List< CreditCard> -
getDeleteAccountStatus(
) → DeleteAccountStatus -
getRankedCreditCardsSync(
ShoppingCategory category) → List< CreditCard> -
getShopCategories(
) → List< ShoppingCategory> -
getStatus(
) → DataBackendStatus -
initCreditCard(
CreditCardCreationRequest req, {bool silent: false}) → Future< void> -
initCreditCardInDatabase(
CreditCardCreationRequest req) → Future< void> -
initCreditCardWithTemplate(
CreditCardCreationRequest req) → Future< void> -
initCreditCardWithTemplateInDatabase(
CreditCardCreationRequest req) → Future< void> -
initialize(
) → Future< void> -
maybeRefresh(
{bool silent: false}) → Future< void> -
maybeRefreshCards(
{bool silent: false}) → Future< void> -
maybeRefreshCreditCardTemplates(
{bool silent: false}) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
notifyListeners(
) → void -
Call all the registered listeners. [...]
@protected, @visibleForTesting, inherited
-
queryCreditCard(
String id) → CreditCard -
recoverFromError(
) → Future< void> -
removeCreditCard(
CreditCardRemovalRequest req) → Future< void> -
removeCreditCardFromDatabase(
CreditCardRemovalRequest req) → Future< void> -
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> -
removePromotionFromDatabase(
PromotionRemovalRequest req) → Future< void> -
renewCreditCardInfo(
CreditCard card) → Future< CreditCard> -
setToken(
String tokenVal) → void -
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited