canOrderBy property
possible orderings with parameter ?order=
attachable_type
: (URLParameter), prefix with a hyphen (-attachable_type) to reverse the ordercreated_at
: (URLParameter), prefix with a hyphen (-created_at) to reverse the orderfilename
: (URLParameter), prefix with a hyphen (-filename) to reverse the orderfiletype
: (URLParameter), prefix with a hyphen (-filetype) to reverse the ordersize
: (URLParameter), prefix with a hyphen (-size) to reverse the order
Implementation
static List<String> get canOrderBy =>
['attachable_type', 'created_at', 'filename', 'filetype', 'size'];