QueryResult class
- Inheritance
- Implemented types
-
- List<
E>
- List<
- Available extensions
Constructors
-
QueryResult(List<
List< source, {required ResultMeta meta, Object? rawResult, int affectedRows = 0})Object?> >
Properties
- affectedRows → int
-
final
- columnCount → int
-
Available on QueryResult, provided by the QueryResultExt extension
no setter -
first
↔ List<
Object?> -
The first element.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether this collection has no elements.
no setterinherited
- isNotEmpty → bool
-
Whether this collection has at least one element.
no setterinherited
-
iterator
→ Iterator<
List< Object?> > -
A new
Iteratorthat allows iterating the elements of thisIterable.no setterinherited -
last
↔ List<
Object?> -
The last element.
getter/setter pairinherited
- length ↔ int
-
The number of objects in this list.
getter/setter pairinherited
- meta → ResultMeta
-
final
- rawResult → Object?
-
final
-
reversed
→ Iterable<
List< Object?> > -
An Iterable of the objects in this list in reverse order.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
single
→ List<
Object?> -
Checks that this iterable has only one element, and returns that element.
no setterinherited
Methods
-
add(
List< Object?> value) → void -
This operation is not supported by an unmodifiable list.
inherited
-
addAll(
Iterable< List< iterable) → voidObject?> > -
This operation is not supported by an unmodifiable list.
inherited
-
any(
bool test(List< Object?> element)) → bool -
Checks whether any element of this iterable satisfies
test.inherited -
asMap(
) → Map< int, List< Object?> > -
An unmodifiable Map view of this list.
inherited
-
cast<
R> () → List< R> -
Returns a view of this list as a list of
Rinstances.inherited -
clear(
) → void -
This operation is not supported by an unmodifiable list.
inherited
-
contains(
Object? element) → bool -
Whether the collection contains an element equal to
element.inherited -
dump(
) → void -
Available on QueryResult, provided by the QueryResultExt extension
-
elementAt(
int index) → List< Object?> -
Returns the
indexth element.inherited -
every(
bool test(List< Object?> element)) → bool -
Checks whether every element of this iterable satisfies
test.inherited -
expand<
T> (Iterable< T> f(List<Object?> element)) → Iterable<T> -
Expands each element of this Iterable into zero or more elements.
inherited
-
fillRange(
int start, int end, [List< Object?> ? fillValue]) → void -
This operation is not supported by an unmodifiable list.
inherited
-
firstMap(
) → AnyMap? -
Available on QueryResult, provided by the QueryResultExt extension
-
firstModel<
T> (ModelCreator< T> creator) → T? -
Available on QueryResult, provided by the QueryResultExt extension
-
firstRow(
) → RowData? -
Available on QueryResult, provided by the QueryResultExt extension
-
firstValue<
T> ([Object col = 0]) → T? -
Available on QueryResult, provided by the QueryResultExt extension
key is int index , OR String key -
firstWhere(
bool test(List< Object?> element), {List<Object?> orElse()?}) → List<Object?> -
The first element that satisfies the given predicate
test.inherited -
fold<
T> (T initialValue, T combine(T previousValue, List< Object?> element)) → T -
Reduces a collection to a single value by iteratively combining each
element of the collection with an existing value
inherited
-
followedBy(
Iterable< List< other) → Iterable<Object?> >List< Object?> > -
Creates the lazy concatenation of this iterable and
other.inherited -
forEach(
void action(List< Object?> element)) → void -
Invokes
actionon each element of this iterable in iteration order.inherited -
getRange(
int start, int end) → Iterable< List< Object?> > -
Creates an Iterable that iterates over a range of elements.
inherited
-
indexOf(
Object? element, [int start = 0]) → int -
The first index of
elementin this list.inherited -
indexWhere(
bool test(List< Object?> element), [int start = 0]) → int -
The first index in the list that satisfies the provided
test.inherited -
insert(
int index, List< Object?> element) → void -
This operation is not supported by an unmodifiable list.
inherited
-
insertAll(
int at, Iterable< List< iterable) → voidObject?> > -
This operation is not supported by an unmodifiable list.
inherited
-
join(
[String separator = ""]) → String -
Converts each element to a String and concatenates the strings.
inherited
-
labelToIndex(
String label) → int -
lastIndexOf(
Object? element, [int? start]) → int -
The last index of
elementin this list.inherited -
lastIndexWhere(
bool test(List< Object?> element), [int? start]) → int -
The last index in the list that satisfies the provided
test.inherited -
lastWhere(
bool test(List< Object?> element), {List<Object?> orElse()?}) → List<Object?> -
The last element that satisfies the given predicate
test.inherited -
listMaps(
) → List< AnyMap> -
Available on QueryResult, provided by the QueryResultExt extension
-
listModels<
T> (ModelCreator< T> creator) → List<T> -
Available on QueryResult, provided by the QueryResultExt extension
-
listRows(
) → List< RowData> -
Available on QueryResult, provided by the QueryResultExt extension
-
listValues<
T> ([Object col = 0]) → List< T> -
Available on QueryResult, provided by the QueryResultExt extension
col is int index , OR String key -
map<
T> (T f(List< Object?> element)) → Iterable<T> -
The current elements of this iterable modified by
toElement.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
oneMap(
int row) → AnyMap -
Available on QueryResult, provided by the QueryResultExt extension
-
oneModel<
T> (ModelCreator< T> creator, {required int row}) → T -
Available on QueryResult, provided by the QueryResultExt extension
-
oneRow(
int row) → RowData -
Available on QueryResult, provided by the QueryResultExt extension
-
oneValue<
T> ({required int row, Object col = 0}) → T? -
Available on QueryResult, provided by the QueryResultExt extension
-
reduce(
List< Object?> combine(List<Object?> previousValue, List<Object?> element)) → List<Object?> -
Reduces a collection to a single value by iteratively combining elements
of the collection using the provided function.
inherited
-
remove(
Object? element) → bool -
This operation is not supported by an unmodifiable list.
inherited
-
removeAt(
int index) → List< Object?> -
This operation is not supported by an unmodifiable list.
inherited
-
removeLast(
) → List< Object?> -
This operation is not supported by an unmodifiable list.
inherited
-
removeRange(
int start, int end) → void -
This operation is not supported by an unmodifiable list.
inherited
-
removeWhere(
bool test(List< Object?> element)) → void -
This operation is not supported by an unmodifiable list.
inherited
-
replaceRange(
int start, int end, Iterable< List< iterable) → voidObject?> > -
This operation is not supported by an unmodifiable list.
inherited
-
retainWhere(
bool test(List< Object?> element)) → void -
This operation is not supported by an unmodifiable list.
inherited
-
setAll(
int at, Iterable< List< iterable) → voidObject?> > -
This operation is not supported by an unmodifiable list.
inherited
-
setRange(
int start, int end, Iterable< List< iterable, [int skipCount = 0]) → voidObject?> > -
This operation is not supported by an unmodifiable list.
inherited
-
shuffle(
[Random? random]) → void -
This operation is not supported by an unmodifiable list.
inherited
-
singleWhere(
bool test(List< Object?> element), {List<Object?> orElse()?}) → List<Object?> -
The single element that satisfies
test.inherited -
skip(
int count) → Iterable< List< Object?> > -
Creates an Iterable that provides all but the first
countelements.inherited -
skipWhile(
bool test(List< Object?> element)) → Iterable<List< Object?> > -
Creates an
Iterablethat skips leading elements whiletestis satisfied.inherited -
sort(
[Comparator< List< ? compare]) → voidObject?> > -
This operation is not supported by an unmodifiable list.
inherited
-
sublist(
int start, [int? end]) → List< List< Object?> > -
Returns a new list containing the elements between
startandend.inherited -
take(
int count) → Iterable< List< Object?> > -
Creates a lazy iterable of the
countfirst elements of this iterable.inherited -
takeWhile(
bool test(List< Object?> element)) → Iterable<List< Object?> > -
Creates a lazy iterable of the leading elements satisfying
test.inherited -
toList(
{bool growable = true}) → List< List< Object?> > -
Creates a List containing the elements of this Iterable.
inherited
-
toSet(
) → Set< List< Object?> > -
Creates a Set containing the same elements as this iterable.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
where(
bool test(List< Object?> element)) → Iterable<List< Object?> > -
Creates a new lazy Iterable with all elements that satisfy the
predicate
test.inherited -
whereType<
T> () → Iterable< T> -
Creates a new lazy Iterable with all elements that have type
T.inherited
Operators
-
operator +(
List< List< other) → List<Object?> >List< Object?> > -
Returns the concatenation of this list and
other.inherited -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → List< Object?> -
The object at the given
indexin the list.inherited -
operator []=(
int index, List< Object?> value) → void -
This operation is not supported by an unmodifiable list.
inherited