canOrderBy property
possible orderings with parameter ?order=
created_at
: (URLParameter), prefix with a hyphen (-created_at) to reverse the ordersort_date
: (URLParameter), prefix with a hyphen (-sort_date) to reverse the ordertitle
: (URLParameter), prefix with a hyphen (-title) to reverse the orderupdated_at
: (URLParameter), prefix with a hyphen (-updated_at) to reverse the order
Implementation
static List<String> get canOrderBy =>
['created_at', 'sort_date', 'title', 'updated_at'];