CascadeDeleteBehavior enum

Defines the cascading behavior for delete operations on relationships.

Inheritance
Available extensions

Values

none → const CascadeDeleteBehavior

Do not cascade delete - this is the default behavior. The related entities will remain, potentially becoming orphaned.

cascade → const CascadeDeleteBehavior

Cascade delete to related entities. When the parent is deleted, all related entities will also be deleted.

restrict → const CascadeDeleteBehavior

Prevent deletion if related entities exist. The delete operation will fail if there are related entities.

setNull → const CascadeDeleteBehavior

Set foreign keys to null instead of deleting. Only applicable to BelongsTo relationships.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<CascadeDeleteBehavior>
A constant List of the values in this enum, in order of their declaration.