canOrderBy property

List<String> canOrderBy

possible orderings with parameter ?order=

  • city: (URLParameter), prefix with a hyphen (-city) to reverse the order
  • created_at: (URLParameter), prefix with a hyphen (-created_at) to reverse the order
  • location: (URLParameter), prefix with a hyphen (-location) to reverse the order
  • primary: (URLParameter), prefix with a hyphen (-primary) to reverse the order
  • state: (URLParameter), prefix with a hyphen (-state) to reverse the order
  • street: (URLParameter), prefix with a hyphen (-street) to reverse the order
  • updated_at: (URLParameter), prefix with a hyphen (-updated_at) to reverse the order
  • zip: (URLParameter), prefix with a hyphen (-zip) to reverse the order

Implementation

static List<String> get canOrderBy => [
      'city',
      'created_at',
      'location',
      'primary',
      'state',
      'street',
      'updated_at',
      'zip'
    ];