canOrderBy property
possible orderings with parameter ?order=
active
: (URLParameter), prefix with a hyphen (-active) to reverse the orderarchived_at
: (URLParameter), prefix with a hyphen (-archived_at) to reverse the ordercreated_at
: (URLParameter), prefix with a hyphen (-created_at) to reverse the orderdeleted_at
: (URLParameter), prefix with a hyphen (-deleted_at) to reverse the orderdescription
: (URLParameter), prefix with a hyphen (-description) to reverse the ordername
: (URLParameter), prefix with a hyphen (-name) to reverse the orderupdated_at
: (URLParameter), prefix with a hyphen (-updated_at) to reverse the order
Implementation
static List<String> get canOrderBy => [
'active',
'archived_at',
'created_at',
'deleted_at',
'description',
'name',
'updated_at'
];