membership library

Classes

AccessPolicy
Maps named features to the minimum MembershipTier required to access them.
MemberBadge
A visual chip/tag that displays a user's MembershipTier.
MembershipScope
An InheritedWidget that makes a MembershipService available to the widget sub-tree.
MembershipService
Manages the current user's MembershipTier and broadcasts changes.
MembershipTier
A membership tier that defines a user's privilege level in the application.
TierGate
A widget that renders child only when the current user's tier meets or exceeds requires.
TrialEvent
Events emitted by TrialManager when a trial's lifecycle changes.
TrialEventEnded
A trial has ended for productId.
TrialEventEndingSoon
A trial is ending soon; hoursLeft indicates the time remaining.
TrialEventStarted
A trial has just been started for productId.
TrialManager
Manages free-trial periods for products locally on-device.
UpgradePrompt
A standardised upgrade call-to-action widget that prompts the user to upgrade to targetTier.

Enums

MemberBadgeSize
The display size of a MemberBadge.
UpgradePromptStyle
Controls the visual presentation style of an UpgradePrompt.

Typedefs

MembershipTierResolver = Future<MembershipTier> Function()
A function that asynchronously resolves the current user's MembershipTier.