TableTheme class

A composable table theme with blend-aware effects and presets.

Constructors

TableTheme([List<TableThemeEffect> effects = const []])
Creates a table theme.

Properties

effects List<TableThemeEffect>
Theme effects applied in list order.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
styleForCell({required int row, required int column, required TableThemeSection section, required int rowCount, required int columnCount, required bool hasHeader, required bool hasDarkBackground}) Style?
Returns a merged style for the given cell.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

defaultTheme TableTheme
Default no-op theme.
final
names List<String>
Preset names in declaration order.
no setter
values List<TableTheme>
All preset values in declaration order.
no setter

Static Methods

applyBlendMode(Color base, Color overlay, TableBlendMode mode, {required bool hasDarkBackground}) Color
Blends overlay onto base using mode.
byName(String name) TableTheme
Looks up a preset by case-insensitive name.