canOrderBy property

List<String> canOrderBy

possible orderings with parameter ?order=

  • created_at: (URLParameter), prefix with a hyphen (-created_at) to reverse the order
  • first_name: (URLParameter), prefix with a hyphen (-first_name) to reverse the order
  • last_name: (URLParameter), prefix with a hyphen (-last_name) to reverse the order
  • updated_at: (URLParameter), prefix with a hyphen (-updated_at) to reverse the order

Implementation

static List<String> get canOrderBy =>
    ['created_at', 'first_name', 'last_name', 'updated_at'];