AdvancedCustomFilter class

The advanced custom filter.

The AdvancedCustomFilter is a more powerful helper.

Examples:

final filter = AdvancedCustomFilter()
    .addWhereCondition(
      ColumnWhereCondition(
        column: _columns.width,
        operator: '>=',
        value: '200',
      ),
    )
    .addOrderBy(column: _columns.createDate, isAsc: false);
Inheritance

Constructors

AdvancedCustomFilter({List<WhereConditionItem> where = const [], List<OrderByItem> orderBy = const []})
The advanced custom filter.

Properties

containsPathModified bool
Whether the AssetPathEntitys will return with modified time.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
needTitle bool
Whether the AssetEntitys will return with title.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type BaseFilterType
The type of the filter.
no setterinherited

Methods

addOrderBy({required String column, bool isAsc = true}) AdvancedCustomFilter
Add a OrderByItem to the filter.
addWhereCondition(WhereConditionItem condition, {LogicalType type = LogicalType.and}) AdvancedCustomFilter
Add a WhereConditionItem to the filter.
childMap() Map<String, dynamic>
The child map of the filter.
inherited
makeOrderBy() List<OrderByItem>
Make the order by condition.
override
makeWhere() String
Make the where condition.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Convert the filter to a map for channel.
inherited
toString() String
A string representation of this object.
inherited
updateDateToNow() PMFilter
The method only supports for FilterOptionGroup.
inherited

Operators

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