ResourceSort class

Constructors

ResourceSort({required String key, required String label, String direction = 'asc', bool isDefault = false})
const
ResourceSort.fromJson(Map<String, dynamic> json, String path)
factory

Properties

direction String
asc or desc. A closed set — anything else throws rather than sorting the list the wrong way round.
final
hashCode int
The hash code for this object.
no setterinherited
isDefault bool
final
key String
final
label String
final
props List<Object?>
Identity only: two sorts on the same key and direction compare equal even when their label or isDefault differ. Enough to dedupe a sort menu, not enough to detect that the server changed one. Do not use it to decide whether a refreshed schema is unchanged.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited