defaultSort property
ResourceSort?
get
defaultSort
The declared default sort, if any — same rule as
ResourceSchema.defaultSort. The server applies it when a request
carries no sort parameter; the provider sends it explicitly so the
active sort is what the menu shows as selected.
Implementation
ResourceSort? get defaultSort {
for (final sort in sorts) {
if (sort.isDefault) return sort;
}
return null;
}