console method

ConsoleSection console({
  1. String? title = 'Console',
  2. double height = 150,
  3. bool bordered = true,
  4. Color? background = Colors.white,
  5. EdgeInsetsGeometry? padding,
  6. SectionBorder? border,
  7. double? marginLeft,
  8. double? marginBottom,
  9. 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;
}