canOrderBy property
possible orderings with parameter ?order=
city
: (URLParameter), prefix with a hyphen (-city) to reverse the ordercreated_at
: (URLParameter), prefix with a hyphen (-created_at) to reverse the orderlocation
: (URLParameter), prefix with a hyphen (-location) to reverse the orderprimary
: (URLParameter), prefix with a hyphen (-primary) to reverse the orderstate
: (URLParameter), prefix with a hyphen (-state) to reverse the orderstreet
: (URLParameter), prefix with a hyphen (-street) to reverse the orderupdated_at
: (URLParameter), prefix with a hyphen (-updated_at) to reverse the orderzip
: (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'
];