onDelete property Null safety

DeleteRule onDelete
final

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.

Implementation

final DeleteRule onDelete;