beforeSave method

Future<void> beforeSave({
  1. Provider<Model>? provider,
  2. ModelRepository<Model>? repository,
})

Hook invoked before the model is successfully entered in the SQLite database. Useful to update or save associations.

Implementation

Future<void> beforeSave({Provider? provider, ModelRepository? repository}) async {}