onDeleteCascade property

bool onDeleteCascade
final

When true, deletion of the referenced record by foreignKeyColumn on the foreignTableName this record. For example, if the foreign table is "departments" and the local table is "employees," whenever that department is deleted, "employee" will be deleted. Defaults false.

Implementation

final bool onDeleteCascade;