ensureDraft method

  1. @override
Future<void> ensureDraft()
override

Ensures the draft is initialized.

Implementation

@override
Future<void> ensureDraft() async {
  Log.debug('ensureDraft()', '$runtimeType($id)');

  if (_draftGuard.isLocked) {
    await _draftGuard.protect(() async {});
  }
}