FieldCompanion class Null safety
- Inheritance
-
- Object
- UpdateCompanion<
FieldData> - FieldCompanion
Constructors
-
FieldCompanion({Value<
String> id = const Value.absent(), Value<DateTime> created = const Value.absent(), Value<DateTime> updated = const Value.absent(), Value<FieldType> type = const Value.absent(), Value<String> name = const Value.absent(), Value<bool> system = const Value.absent(), Value<bool> required = const Value.absent(), Value<bool> unique = const Value.absent(), Value<String> collectionId = const Value.absent(), Value<String> extra = const Value.absent()}) -
const
- FieldCompanion.insert({required String id, required DateTime created, required DateTime updated, required FieldType type, required String name, required bool system, required bool required, required bool unique, required String collectionId, required String extra})
Properties
-
collectionId
→ Value<
String> -
final
-
created
→ Value<
DateTime> -
final
-
extra
→ Value<
String> -
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
id
→ Value<
String> -
final
-
name
→ Value<
String> -
final
-
required
→ Value<
bool> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
-
system
→ Value<
bool> -
final
-
type
→ Value<
FieldType> -
final
-
unique
→ Value<
bool> -
final
-
updated
→ Value<
DateTime> -
final
Methods
-
copyWith(
{Value< String> ? id, Value<DateTime> ? created, Value<DateTime> ? updated, Value<FieldType> ? type, Value<String> ? name, Value<bool> ? system, Value<bool> ? required, Value<bool> ? unique, Value<String> ? collectionId, Value<String> ? extra}) → FieldCompanion -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toColumns(
bool nullToAbsent) → Map< String, Expression< Object> > -
Converts this object into a map of column names to expressions to insert
or update.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
custom(
{Expression< String> ? id, Expression<DateTime> ? created, Expression<DateTime> ? updated, Expression<String> ? type, Expression<String> ? name, Expression<bool> ? system, Expression<bool> ? required, Expression<bool> ? unique, Expression<String> ? collectionId, Expression<String> ? extra}) → Insertable<FieldData>