canOrderBy property

List<String> canOrderBy

possible orderings with parameter ?order=

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

Implementation

static List<String> get canOrderBy =>
    ['first_name', 'joined_at', 'last_name', 'role'];