CommentController constructor
CommentController({
- String? id,
- String? label,
- CommentOptions? options,
- CommentingRangeProvider? commentingRangeProvider,
- Future reactionHandler()?,
- CommentThread createCommentThread()?,
- 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),
);