canOrderBy property
possible orderings with parameter ?order=
created_at
: (URLParameter), prefix with a hyphen (-created_at) to reverse the orderdisplay_date
: (URLParameter), prefix with a hyphen (-display_date) to reverse the orderid
: (URLParameter), prefix with a hyphen (-id) to reverse the ordernote
: (URLParameter), prefix with a hyphen (-note) to reverse the ordernote_category_id
: (URLParameter), prefix with a hyphen (-note_category_id) to reverse the orderupdated_at
: (URLParameter), prefix with a hyphen (-updated_at) to reverse the order
Implementation
static List<String> get canOrderBy => [
'created_at',
'display_date',
'id',
'note',
'note_category_id',
'updated_at'
];