SupaColumn<B extends SupaCore, T, J> class

An annotation to let the generator know that the field is a column of a Supabase table.

Provide T to specify the type of the column. (e.g. @SupaColumnHere<int>)

Inheritance

Constructors

SupaColumn({required String name, J valueToJSON(T value)?, T valueFromJSON(J value)?})
An annotation to let the generator know that the field is a column of a Supabase table.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the column.
final
queryPattern String
The query pattern for this column in the select() query.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valueFromJSON → T Function(J value)?
The function to convert the value from the JSON to the correct type.
final
valueToJSON → J Function(T value)?
The function to convert the value to the correct type for the JSON.
final

Methods

call(T value) SupaValue<B, T, J>
Creates value for the table from the given value.
fromJSON(Map<String, dynamic> json) → T
Fetches the value of the column from the JSON.
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