CodeSnippetTheme constructor

const CodeSnippetTheme({
  1. Color? backgroundColor,
  2. Color? borderColor,
  3. double? borderWidth,
  4. BorderRadiusGeometry? borderRadius,
  5. EdgeInsetsGeometry? padding,
})

Creates a CodeSnippetTheme.

All parameters are optional and will fall back to theme defaults when not provided.

Parameters:

  • backgroundColor (Color?, optional): Container background color
  • borderColor (Color?, optional): Border outline color
  • borderWidth (double?, optional): Border thickness in pixels
  • borderRadius (BorderRadiusGeometry?, optional): Corner radius
  • padding (EdgeInsetsGeometry?, optional): Content padding

Example:

CodeSnippetTheme(
  backgroundColor: Colors.black87,
  borderRadius: BorderRadius.circular(12.0),
  padding: EdgeInsets.all(20.0),
);

Implementation

const CodeSnippetTheme({
  this.backgroundColor,
  this.borderColor,
  this.borderWidth,
  this.borderRadius,
  this.padding,
});