CustomFilter class abstract

Full custom filter.

Use the filter to filter all the assets.

Actually, it is a sql filter. In android: convert where and orderBy to the params of ContentResolver.query In iOS/macOS: convert where and orderBy to the PHFetchOptions to filter the assets.

Now, the CustomFilter is have two sub class: CustomFilter.sql to create SqlCustomFilter.

The AdvancedCustomFilter is a more powerful helper.

Examples: The sql custom filter.

create example:

final filter = CustomFilter.sql(
 where: '${CustomColumns.base.width} > 1000',
 orderBy: [
     OrderByItem(CustomColumns.base.width, desc),
  ],
);

See also:

Inheritance

Constructors

CustomFilter()
CustomFilter.sql({required String where, List<OrderByItem> orderBy = const []})
factory

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 pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type BaseFilterType
The type of the filter.
no setteroverride

Methods

childMap() Map<String, dynamic>
The child map of the filter.
override
makeOrderBy() List<OrderByItem>
Make the order by condition.
makeWhere() String
Make the where condition.
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.
override

Operators

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