Filter class

A class to handle filter photos. It stores the filter settings and checks if a given day satisfies the filter conditions.

Constructors

Filter({required int rangePhotosValuesStart, required int rangePhotosValuesEnd, required DateTime startDate, required DateTime endDate, required List<String> camerasSelected})

Properties

camerasSelected → List<String>
List of selected cameras for the filter
final
endDate → DateTime
End date for the filter. Last date available in the data.
final
hashCode → int
The hash code for this object.
no setterinherited
rangePhotosValuesEnd → int
Ending range of photo values for the filter. Maximum photos taken in a day.
final
rangePhotosValuesStart → int
Starting range of photo values for the filter. Minimum photos taken in a day.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startDate → DateTime
Start date for the filter. First date available in the data.
final

Methods

isValidDay(SolDay day) → bool
Checks if a given day satisfies the filter conditions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

loadFilter(int rangePhotosValuesEnd, DateTime endDate) → Future<Filter>
Loads the filter settings from shared preferences. rangePhotosValuesEnd is the maximum number of photos taken in a day and endDate is the last available date in the data.
resetFilter(Filter filter) → Future<void>
Resets the filter settings to default values
storeFilter(int rangePhotosValuesStart, int rangePhotosValuesEnd, DateTime startDate, DateTime endDate, List<String> cameras) → Future<void>
Stores the filter settings in shared preferences