DVFeatureFlag<T> class
A declared flag: its key, type, compiled default, owner and expiry.
Generated from @DVFlags() declarations rather than written by hand, so a
misspelt flag is a compile error instead of a lookup that silently misses.
Constructors
-
DVFeatureFlag({required String key, required T defaultValue, required String owner, required DateTime expires, DVFlagSettle settle = DVFlagSettle.immediately, List<
T> ? values}) -
const
Properties
- defaultValue → T
-
The answer compiled into the build: what the flag says before anything
syncs, and what every fallback falls back to.
final
- expires → DateTime
-
When it becomes debt. Past it the build warns, and
dartvel flags prunelists it.final - hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
The key the rule set names this flag by.
final
- owner → String
-
Who to ask about it, and who prunes it.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settle → DVFlagSettle
-
final
- value → T
-
The current answer for the ambient context.
no setter
-
values
→ List<
T> ? -
The declared values of an enum flag, so a rule's value can be read back
by name. Null for
bool,String,intanddoubleflags.final
Methods
-
isExpired(
DateTime now) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited