console method
ConsoleSection
console({
- String? title = 'Console',
- double height = 150,
- bool bordered = true,
- Color? background = Colors.white,
- EdgeInsetsGeometry? padding,
- SectionBorder? border,
- double? marginLeft,
- double? marginBottom,
- double maxWidth = double.infinity,
inherited
Create a section to display console output.
Implementation
ConsoleSection console(
{String? title = 'Console',
double height = 150,
bool bordered = true,
Color? background = Colors.white,
EdgeInsetsGeometry? padding,
SectionBorder? border,
double? marginLeft,
double? marginBottom,
double maxWidth = double.infinity}) {
ConsoleSection section = ConsoleSection(
title: title,
height: height,
marginLeft: marginLeft,
marginBottom: marginBottom,
border: border,
background: background,
padding: padding ?? EdgeInsets.all(8),
maxWidth: maxWidth);
_sections.add(section);
return section;
}