WhereConditionGroup class
The group of WhereConditionItem and WhereConditionGroup.
If you need like ( width > 1000 AND height > 1000) OR ( width < 500 AND height < 500)
,
you can use this class to do it.
The first item logical type will be ignored.
final filter = AdvancedCustomFilter().addWhereCondition(
WhereConditionGroup()
.andGroup(
WhereConditionGroup().andText('width > 1000').andText('height > 1000'),
)
.orGroup(
WhereConditionGroup().andText('width < 500').andText('height < 500'),
),
);
- Inheritance
-
- Object
- WhereConditionItem
- WhereConditionGroup
Constructors
- WhereConditionGroup()
- The group of WhereConditionItem and WhereConditionGroup.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
WhereConditionItem> -
final
- logicalType ↔ LogicalType
-
The logical operator used in the CustomFilter.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The text of the condition.
no setteroverride
Methods
-
and(
WhereConditionItem item) → WhereConditionGroup - Add a WhereConditionItem to the group.
-
andGroup(
WhereConditionGroup group) → WhereConditionGroup - Add a WhereConditionItem to the group.
-
andText(
String text) → WhereConditionGroup -
Add a
text
condition to the group. -
display(
) → String -
Same text is converted, no readable.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
or(
WhereConditionItem item) → WhereConditionGroup - Add a WhereConditionItem to the group.
-
orGroup(
WhereConditionGroup group) → WhereConditionGroup -
orText(
String text) → WhereConditionGroup -
Add a
text
condition to the group. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited