FlagEvaluationResult<T> class

Result of feature flag evaluation

Constructors

FlagEvaluationResult.new({required String flagKey, required T value, String reason = 'DEFAULT', String? variant, ErrorCode? errorCode, String? errorMessage, Map<String, dynamic>? details, required DateTime evaluatedAt, String evaluatorId = ''})
const

Properties

details Map<String, dynamic>?
final
errorCode ErrorCode?
final
errorMessage String?
final
evaluatedAt DateTime
final
evaluatorId String
final
flagKey String
final
hashCode int
The hash code for this object.
no setterinherited
reason String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
final
variant String?
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

Operators

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

Static Methods

error<T>(String flagKey, T defaultValue, ErrorCode errorCode, String message, {String evaluatorId = ''}) FlagEvaluationResult<T>
Create an error result