canOrderBy property

List<String> canOrderBy

possible orderings with parameter ?order=

  • attachable_type: (URLParameter), prefix with a hyphen (-attachable_type) to reverse the order
  • created_at: (URLParameter), prefix with a hyphen (-created_at) to reverse the order
  • filename: (URLParameter), prefix with a hyphen (-filename) to reverse the order
  • filetype: (URLParameter), prefix with a hyphen (-filetype) to reverse the order
  • size: (URLParameter), prefix with a hyphen (-size) to reverse the order

Implementation

static List<String> get canOrderBy =>
    ['attachable_type', 'created_at', 'filename', 'filetype', 'size'];