ForeignKeySnapshotRef class

Represents foreign key reference information in a snapshot.

Annotations
  • @immutable

Constructors

ForeignKeySnapshotRef({required String referencedTable, required String referencedColumn, String? onDelete, String? onUpdate})
Creates a snapshot of a foreign key reference.
const
ForeignKeySnapshotRef.fromMap(Map<String, dynamic> data)
Creates a foreign key reference from a map.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
onDelete String?
The ON DELETE action ('CASCADE', 'SET NULL').
final
onUpdate String?
The ON UPDATE action ('CASCADE', 'SET NULL').
final
referencedColumn String
The name of the referenced column.
final
referencedTable String
The name of the referenced table.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toForeignKeyInfo() ForeignKeyInfo
Converts the reference to the ForeignKeyInfo the DDL generators consume.
toMap() Map<String, dynamic>
Converts the foreign key reference to a map.
toString() String
A string representation of this object.
inherited

Operators

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