UseRowClass class

An annotation specifying an existing class to be used as a data class.

Annotations
  • @Target({TargetKind.classType})

Constructors

UseRowClass(Type type, {String constructor = '', bool generateInsertable = false})
Customize the class used by drift to hold an instance of an annotated table.
const

Properties

constructor String
The name of the constructor to use.
final
generateInsertable bool
Generate a toInsertable() extension function for type mapping all fields to an insertable 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
type Type
The existing class
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