CodeSnippetTheme constructor
const
CodeSnippetTheme({
- Color? backgroundColor,
- Color? borderColor,
- double? borderWidth,
- BorderRadiusGeometry? borderRadius,
- 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 colorborderColor
(Color?, optional): Border outline colorborderWidth
(double?, optional): Border thickness in pixelsborderRadius
(BorderRadiusGeometry?, optional): Corner radiuspadding
(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,
});