SortField class

Defines a field name and order used to sort query results.

See SortParams

Example

var filter = FilterParams.fromTuples(['type', 'Type1']);
var paging =  PagingParams(0, 100);
var sorting =  SortingParams( SortField('create_time', true));

myDataClient.getDataByFilter(filter, paging, sorting, (err, page) {...});

Constructors

SortField([String? name, bool ascending = true])
Creates a new instance and assigns its values.
SortField.fromJson(Map<String, dynamic> json)
Creates a new instance from json.
factory

Properties

ascending bool
The flag to define sorting order. True to sort ascending, false to sort descending
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String?
The field name to sort by
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromJson(Map<String, dynamic> json) → void
Returned JSON Map object from values of this object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Initialize this object from JSON Map object
toString() String
A string representation of this object.
inherited

Operators

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