Ordering class
Ordering model
Create a new ordering that handle the data for querying.
- Implementers
- Annotations
-
- @freezed
Constructors
- Ordering.document(String type, {@Default(false) bool descending})
-
Document Ordering constructor
constfactory
- Ordering.firstPublicationDate({@Default(false) bool descending})
-
First publication date Ordering constructor
constfactory
- Ordering.lastPublicationDate({@Default(false) bool descending})
-
Last publication date Ordering constructor
constfactory
- Ordering.type(String customType, String field, {@Default(false) bool descending})
-
Custom type Ordering constructor
constfactory
Properties
-
copyWith
→ $OrderingCopyWith<
Ordering> -
no setterinherited
- descending → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult type(TypeOrdering value), required TResult document(DocumentOrdering value), required TResult firstPublicationDate(FirstPublicationDateOrdering value), required TResult lastPublicationDate(LastPublicationDateOrdering value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? type(TypeOrdering value)?, TResult? document(DocumentOrdering value)?, TResult? firstPublicationDate(FirstPublicationDateOrdering value)?, TResult? lastPublicationDate(LastPublicationDateOrdering value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult type(TypeOrdering value)?, TResult document(DocumentOrdering value)?, TResult firstPublicationDate(FirstPublicationDateOrdering value)?, TResult lastPublicationDate(LastPublicationDateOrdering value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult type(String customType, String field, bool descending)?, TResult document(String type, bool descending)?, TResult firstPublicationDate(bool descending)?, TResult lastPublicationDate(bool descending)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult type(String customType, String field, bool descending), required TResult document(String type, bool descending), required TResult firstPublicationDate(bool descending), required TResult lastPublicationDate(bool descending)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? type(String customType, String field, bool descending)?, TResult? document(String type, bool descending)?, TResult? firstPublicationDate(bool descending)?, TResult? lastPublicationDate(bool descending)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited