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,
- bool handleKeys = true,
- bool scrollable = true,
- bool fitContentHeight = false,
- 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.handleKeys = true,
this.scrollable = true,
this.fitContentHeight = false,
super.key,
});