DateFilter class

Inheritance
Annotations
  • @immutable

Constructors

DateFilter.new(String property, {bool isFormulaProperty = false, DateTime? equals, DateTime? before, DateTime? after, DateTime? onOrBefore, DateTime? onOrAfter, bool? pastWeek, bool? pastMonth, bool? pastYear, bool? nextWeek, bool? nextMonth, bool? nextYear, bool? isEmpty, bool? isNotEmpty})

Properties

after DateTime?
final
before DateTime?
final
equals DateTime?
final
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool?
final
isFormulaProperty bool
Indicates whether this filter is being applied to a formula property.
finalinherited
isNotEmpty bool?
final
nextMonth bool?
final
nextWeek bool?
final
nextYear bool?
final
onOrAfter DateTime?
final
onOrBefore DateTime?
final
pastMonth bool?
final
pastWeek bool?
final
pastYear bool?
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.
inherited
toMapWithoutPropertyKey() Map<String, dynamic>
override
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.
inherited

Operators

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