Column class
This annotation is used for when you want to change default name of column name of a field in table. You have to know that the default column name is property name.
@Entity()
class Note {
@PrimaryKey(autoGenerate: true)
final int? id;
final String text;
@Column(name: 'edited')
final bool isEdited;
Note({
this.id,
required this.text,
required this.isEdited,
});
}
Properties
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
Static Properties
- fields ↔ _ColumnFields
-
getter/setter pair