SupaValue<B extends SupaCore, T, J> class

Represents a value that is stored within a record from a Supabase table.

B is the core class for the table.

T is the type of the value after conversion from the JSON.

J is the type of the value before conversion from the JSON.

Constructors

SupaValue({required T value, required String name, required J valueToJSON(T value)?, required T valueFromJSON(J value)?})
Represents a value that is stored within a record from a Supabase table.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the column in the table.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The value.
final
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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() Map<String, dynamic>
Converts the value to a JSON object.
toJSONValue() → J
Returns the converted value ready for JSON.
toString() String
A string representation of this object.
inherited

Operators

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