DumbDataBackend class
- Inheritance
- Object
- ChangeNotifier
- DataBackend
- DumbDataBackend
Constructors
Properties
-
creditCards
↔ List<
CreditCard> -
read / write, inherited
- creditCardsDirty ↔ bool
-
read / write, inherited
- creditCardTempaltesDirty ↔ bool
-
read / write, inherited
-
creditCardTemplates
↔ List<
CreditCard> -
read / write, inherited
- deleteAccountStatus ↔ DeleteAccountStatus
-
TODO(#453): merge it with status
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
- 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< void> -
override
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes. [...]
inherited
-
addPromitionToDatabase(
PromotionAdditionRequest req) → Future< void> -
override
-
addPromotion(
PromotionAdditionRequest req, {bool silent: false}) → Future< void> -
inherited
-
deleteAccount(
) → Future< void> -
inherited
-
deleteAccountFromDatabase(
) → Future< void> -
override
-
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> > -
override
-
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> -
override
-
initCreditCardWithTemplate(
CreditCardCreationRequest req) → Future< void> -
inherited
-
initCreditCardWithTemplateInDatabase(
CreditCardCreationRequest req) → Future< void> -
override
-
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. [...]
@protected, @visibleForTesting, inherited
-
queryCreditCard(
String id) → CreditCard -
inherited
-
recoverFromError(
) → Future< void> -
inherited
-
removeCreditCard(
CreditCardRemovalRequest req) → Future< void> -
inherited
-
removeCreditCardFromDatabase(
CreditCardRemovalRequest req) → Future< void> -
override
-
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> -
override
-
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