restore method

Future<int> restore()

Restores the matching soft deleted models.

Implementation

Future<int> restore() => onlyTrashed().prepared().update({
  definition.deletedAt: null,
  if (definition.timestamps) definition.updatedAt: _timestamp(),
});