RawData class

If you want to fetch raw results as List<Map<String, Object?>>? from a query in Dao class, you can use this class as return type of a method in your Dao class. Example:

@Dao()
abstract class NoteDao {
  @Query("select * from Note where text LIKE '%:search%'")
  Future<RawData> search(String search);
}

Constructors

RawData(List<Map<String, Object?>>? data)
const

Properties

data List<Map<String, Object?>>?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
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