FFXCredits class

The app's credits, as they stand for the end user. The balance lives on the backend, never counted on the phone: spending is a backend rule's.

Properties

balance → int
What the end user can spend now: bought plus free. Below zero after a refund of credits already spent; spending waits until it is above.
final
bought → int
Bought and given credits left. They never expire.
final
free → int
This month's free credits left, spent first; they don't carry over.
final
freeEachMonth → int
Free credits everyone gets each month.
final
freeRefillsAt → DateTime?
When the free credits start again (the 1st of next month, UTC); null when there are none.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
Their name in the payments config, such as vetQuestions.
final
plural → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
singular → String
As people see them: "vet question", "vet questions".
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
words(int count) → String
count in words: "1 vet question", "3 vet questions".

Operators

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