MarkdownPage constructor

const MarkdownPage({
  1. Key? key,
  2. Widget? title,
  3. ScaffoldBuilder? scaffoldBuilder,
  4. String? applicationName,
  5. bool? useMustache,
  6. Map<String, String>? mustacheValues,
  7. required String filename,
  8. MarkdownTapHandler? tapHandler,
  9. MarkdownStyleSheet? styleSheet,
  10. String? imageDirectory,
  11. List<BlockSyntax>? blockSyntaxes,
  12. List<InlineSyntax>? inlineSyntaxes,
  13. ExtensionSet? extensionSet,
  14. MarkdownImageBuilder? imageBuilder,
  15. MarkdownCheckboxBuilder? checkboxBuilder,
  16. Map<String, MarkdownElementBuilder> builders = const {},
  17. bool fitContent = true,
  18. bool selectable = false,
  19. bool shrinkWrap = true,
  20. MarkdownStyleSheetBaseTheme styleSheetTheme = MarkdownStyleSheetBaseTheme.material,
  21. SyntaxHighlighter? syntaxHighlighter,
})

Creates a page that shows a markdown document.

The arguments are all optional. The application name, if omitted, will be derived from the nearest Title widget. The version and legalese values default to the empty string.

Implementation

const MarkdownPage({
  Key? key,
  this.title,
  this.scaffoldBuilder,
  this.applicationName,
  bool? useMustache,
  this.mustacheValues,
  required this.filename,
  this.tapHandler,
  this.styleSheet,
  this.imageDirectory,
  this.blockSyntaxes,
  this.inlineSyntaxes,
  this.extensionSet,
  this.imageBuilder,
  this.checkboxBuilder,
  this.builders = const {},
  this.fitContent = true,
  this.selectable = false,
  this.shrinkWrap = true,
  this.styleSheetTheme = MarkdownStyleSheetBaseTheme.material,
  this.syntaxHighlighter,
})  : useMustache = useMustache ?? mustacheValues != null,
      super(key: key);