PreConfig constructor

const PreConfig({
  1. EdgeInsetsGeometry padding = const EdgeInsets.all(16.0),
  2. Decoration decoration = const BoxDecoration(color: Color(0xffeff1f3), borderRadius: BorderRadius.all(Radius.circular(8.0))),
  3. EdgeInsetsGeometry margin = const EdgeInsets.symmetric(vertical: 8.0),
  4. TextStyle textStyle = const TextStyle(fontSize: 16),
  5. TextStyle? styleNotMatched,
  6. Map<String, TextStyle> theme = a11yLightTheme,
  7. String language = 'dart',
  8. CodeWrapper? wrapper,
  9. CodeBuilder? builder,
})

Implementation

const PreConfig({
  this.padding = const EdgeInsets.all(16.0),
  this.decoration = const BoxDecoration(
    color: Color(0xffeff1f3),
    borderRadius: BorderRadius.all(Radius.circular(8.0)),
  ),
  this.margin = const EdgeInsets.symmetric(vertical: 8.0),
  this.textStyle = const TextStyle(fontSize: 16),
  this.styleNotMatched,
  this.theme = a11yLightTheme,
  this.language = 'dart',
  this.wrapper,
  this.builder,
}) : assert(builder == null || wrapper == null);