CommentController constructor

CommentController({
  1. String? id,
  2. String? label,
  3. CommentOptions? options,
  4. CommentingRangeProvider? commentingRangeProvider,
  5. Future reactionHandler(
    1. Comment,
    2. CommentReaction
    )?,
  6. CommentThread createCommentThread(
    1. Uri,
    2. Range,
    3. List<Comment>
    )?,
  7. void dispose()?,
})

Implementation

factory CommentController({
  _i2.String? id,
  _i2.String? label,
  _i3.CommentOptions? options,
  _i3.CommentingRangeProvider? commentingRangeProvider,
  _i2.Future<_i2.dynamic> Function(
    _i3.Comment,
    _i3.CommentReaction,
  )? reactionHandler,
  _i3.CommentThread Function(
    _i3.Uri,
    _i3.Range,
    _i2.List<_i3.Comment>,
  )? createCommentThread,
  void Function()? dispose,
}) =>
    CommentController._(
      id: id,
      label: label,
      options: options ?? _i6.undefined,
      commentingRangeProvider: commentingRangeProvider ?? _i6.undefined,
      reactionHandler:
          reactionHandler == null ? null : _i5.allowInterop(reactionHandler),
      createCommentThread: createCommentThread == null
          ? null
          : _i5.allowInterop(createCommentThread),
      dispose: dispose == null ? null : _i5.allowInterop(dispose),
    );