GitDiffViewer constructor
GitDiffViewer({
- required String diff,
- int? width,
- int? height,
- bool showLineNumbers = true,
- bool wrapLines = true,
- bool zeroPadLineNumbers = false,
- DiffViewMode? viewMode,
- DiffStyles? styles,
- GitDiffController? controller,
- ScrollController? scrollController,
- bool handleKeys = true,
- bool scrollable = true,
- bool fitContentHeight = false,
- List<
DiffCommentLineHighlight> commentHighlights = const <DiffCommentLineHighlight>[], - List<
DiffCommentBlock> commentBlocks = const [], - Cmd? onCommentAnchorSelected(
- DiffCommentAnchor anchor
- Key? key,
Creates a git diff viewer widget.
Implementation
GitDiffViewer({
required this.diff,
this.width,
this.height,
this.showLineNumbers = true,
this.wrapLines = true,
this.zeroPadLineNumbers = false,
this.viewMode,
this.styles,
this.controller,
this.scrollController,
this.handleKeys = true,
this.scrollable = true,
this.fitContentHeight = false,
this.commentHighlights = const <DiffCommentLineHighlight>[],
this.commentBlocks = const [],
this.onCommentAnchorSelected,
super.key,
});