GitDiffViewer constructor

GitDiffViewer({
  1. required String diff,
  2. int? width,
  3. int? height,
  4. bool showLineNumbers = true,
  5. bool wrapLines = true,
  6. bool zeroPadLineNumbers = false,
  7. DiffViewMode? viewMode,
  8. DiffStyles? styles,
  9. GitDiffController? controller,
  10. bool handleKeys = true,
  11. bool scrollable = true,
  12. bool fitContentHeight = false,
  13. 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,
});