SelectTableTheme class
A theme class for customizing the appearance of a selection table.
The SelectTableTheme class allows you to define styles for various elements of a selection table, including the border, header, active items, and inactive items.
The styles are defined using StyleFunctions, which take a parameter and return a style based on that parameter.
The class provides factory constructors for creating a theme from default colors or from a custom set of colors.
Example usage:
final theme = SelectTableTheme.fromDefault();
Properties:
- borderStyle: The style function for the table border.
- headerStyle: The style function for the table header.
- activeItemStyle: The style function for active items in the table.
- inactiveItemStyle: The style function for inactive items in the table.
Static Members:
- defaultTheme: A default instance of SelectTableTheme using default colors.
Constructors
- SelectTableTheme.new({required StyleFunction borderStyle, required StyleFunction headerStyle, required StyleFunction activeItemStyle, required StyleFunction inactiveItemStyle})
-
const
- SelectTableTheme.fromColors(ThemeColors colors)
-
factory
- SelectTableTheme.fromDefault()
-
factory
Properties
- activeItemStyle → StyleFunction
-
final
- borderStyle → StyleFunction
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerStyle → StyleFunction
-
final
- inactiveItemStyle → StyleFunction
-
final
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- defaultTheme → SelectTableTheme
-
final