SortOption<T> constructor
const
SortOption<T> (
- String field, {
- int direction = SortOption.DESC,
- Comparator<
T> ? comparator,
Creates a new SortOption instance
For example:
// Sort channels by the last message date:
final sorting = SortOption("last_message_at")
Implementation
const SortOption(
this.field, {
this.direction = SortOption.DESC,
this.comparator,
});