Rule class
Represents a condition for a device pool.
Constructors
- Rule({DeviceAttribute? attribute, RuleOperator? operator, String? value})
-
Rule.fromJson(Map<
String, dynamic> json) -
factory
Properties
- attribute → DeviceAttribute?
-
The rule's stringified attribute. For example, specify the value as
""abc""
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- operator → RuleOperator?
-
Specifies how Device Farm compares the rule's attribute to the value. For
the operators that are supported by each attribute, see the attribute
descriptions.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String?
-
The rule's value.
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