beforeDelete method
dynamic
beforeDelete()
Called automatically before this model deletion from db. For example if a student has multiple exam marks, all marks should be deleted before delete this model.
Implementation
beforeDelete() async {}