RuleCondition class
One test over a verified fact about a member. fact: role tests the member's
community role; fact: field tests an admin- or credential-sourced directory
field named by field; fact: personhood tests whether a personhood assertion is
on file; fact: joinedAt tests when they joined. A rule never reads a
self-asserted (member-sourced) field: a member must not be able to join a group
by editing their card.
Constructors
-
RuleCondition({required RuleConditionFact fact, FieldKey? field, required RuleConditionOp op, Object? value, List<
String> ? values}) -
const
-
RuleCondition.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- fact → RuleConditionFact
-
final
- field → String?
-
Present exactly when
factisfield.final - hashCode → int
-
The hash code for this object.
no setterinherited
- op → RuleConditionOp
-
equalscompares withvalue;oneOfwith any ofvalues;existsneeds neither;beforeandaftercompare a date fact withvalue.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → Object?
-
final
-
values
→ List<
String> ? -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited