View class Null safety

Subclasses represent a view in a database generated by drift.

For more information on how to define views in Dart, see the documentation

Inheritance

Constructors

View()
Defines a view to be used with drift.
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

as() Query<HasResultSet, dynamic>
This method is overridden by Dart-defined views to declare the right query to run.
from(Table table) SimpleSelectStatement<HasResultSet, dynamic>
This method should be called on select to define the main table of this view: [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
select(List<Expression> columns) View
The select method can be used in as to define the select query backing this view. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

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