FormulaFilter class abstract
An abstract base class for filters that can be applied to both regular properties and formula properties in Notion databases.
This class extends PropertyFilter and adds functionality to handle formula properties, which require a different structure in the API request.
- Inheritance
-
- Object
- Filter
- PropertyFilter
- FormulaFilter
- Implementers
- Annotations
-
- @immutable
Constructors
- FormulaFilter.new(String property, {bool isFormulaProperty = false})
- Creates a new FormulaFilter.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFormulaProperty → bool
-
Indicates whether this filter is being applied to a formula property.
final
- property → String
-
The name or ID of the property this filter applies to.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
Converts the filter to a map representation compatible with the Notion API.
override
-
toMapWithoutPropertyKey(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
-
wrapInFormula(
Map< String, dynamic> filterMap) → Map<String, dynamic> -
Wraps the given
filterMap
in a 'formula' object if isFormulaProperty is true.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited