QueryResult class

The result of a Query

Constructors

QueryResult.failed(Query query, {String errorMsg = ""})
Creates a QueryResult for a failed Query
factory
QueryResult.success(Query query, {JSON payload = const {}})
Creates a QueryResult for a successful Query
factory

Properties

entityName String
The name of the entity that the Query changed
no setter
hashCode int
The hash code for this object.
no setterinherited
payload → JSON
May contain a payload json if the Query was successful or an object containing an ERROR key with the message
final
query Query
The original Query that yielded this QueryResult
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wasNotSuccessful bool
If the Query failed.
no setter
wasSuccessful bool
If the Query was successful
final

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