ConsumptionAudiencePolicy class
Decides which ConsumptionAudience a CASETE or NUPALE session belongs to.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
-
classify(
{required bool isAuthor, required SubscriptionLevel? level}) → ConsumptionAudience - Authorship wins over the tier: an author on a paid plan is still an author, and their time must not reach the pool.
-
isPaid(
SubscriptionLevel? level) → bool
Constants
-
paidLevels
→ const Set<
SubscriptionLevel> - The tiers someone pays for, which put money into the royalty pool.