TableTheme constructor

const TableTheme({
  1. Border? border,
  2. Color? backgroundColor,
  3. BorderRadiusGeometry? borderRadius,
  4. TableCellTheme? cellTheme,
})

Creates a TableTheme.

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

Parameters:

  • border (Border?, optional): Table container border
  • backgroundColor (Color?, optional): Table background color
  • borderRadius (BorderRadiusGeometry?, optional): Corner radius
  • cellTheme (TableCellTheme?, optional): Default cell styling

Example:

TableTheme(
  border: Border.all(color: Colors.grey),
  borderRadius: BorderRadius.circular(4.0),
  backgroundColor: Colors.white,
);

Implementation

const TableTheme({
  this.border,
  this.backgroundColor,
  this.borderRadius,
  this.cellTheme,
});