CustomDocumentEditEvent<T extends CustomDocument> constructor

CustomDocumentEditEvent<T extends CustomDocument>({
  1. CustomDocument? document,
  2. String? label,
  3. FutureOr<void> undo()?,
  4. FutureOr<void> redo()?,
})

Implementation

factory CustomDocumentEditEvent({
  _i3.CustomDocument? document,
  _i2.String? label,
  _i4.FutureOr<void> Function()? undo,
  _i4.FutureOr<void> Function()? redo,
}) =>
    CustomDocumentEditEvent._(
      document: document,
      label: label,
      undo: undo == null
          ? null
          : _i5.allowInterop(() => _i6.Promise.futureOr(() => undo())),
      redo: redo == null
          ? null
          : _i5.allowInterop(() => _i6.Promise.futureOr(() => redo())),
    );