onDelete property

DeleteRule? onDelete

The delete rule to use when a related instance is deleted.

This rule dictates how the database should handle deleting objects that have relationships. See DeleteRule for possible options.

If isRequired is true, this value may not be DeleteRule.nullify. This value defaults to DeleteRule.nullify.


final DeleteRule? onDelete;