UseRowClass class Null safety

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

Annotations
  • @Target({TargetKind.classType})
  • @experimental

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.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
type Type
The existing class
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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