FormioConditionalRules class

Form.io component conditional visibility definition.

Annotations

Constructors

FormioConditionalRules({bool? show, String? when, dynamic eq, dynamic json, String? custom, Map<String, dynamic> raw = const {}})
const
FormioConditionalRules.fromJson(Map<String, dynamic>? json, {String? customScript})
factory

Properties

custom → String?
Custom JavaScript condition expression (e.g. show = data.age >= 18;).
final
eq → dynamic
The value that when component must equal.
final
hasCustomScript → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasJsonCondition → bool
no setter
hasSimpleCondition → bool
no setter
isEmpty → bool
no setter
json → dynamic
JSON Logic condition rule.
final
raw → Map<String, dynamic>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
show → bool?
Whether to show (true) or hide (false) the component when condition is met.
final
when → String?
The component key to observe.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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