SwayzeStyle class
Describes a set of interface options used by elements inside a table.
- Annotations
Constructors
-
SwayzeStyle({required SwayzeHeaderPalette defaultHeaderPalette, required SwayzeHeaderPalette selectedHeaderPalette, required SwayzeHeaderPalette highlightedHeaderPalette, required Color headerSeparatorColor, required TextStyle headerTextStyle, required Color defaultCellBackground, required Color cellSeparatorColor, required double cellSeparatorStrokeWidth, required SelectionStyle userSelectionStyle, required Duration selectionAnimationDuration, required List<
BoxShadow> inlineEditorShadow}) -
const
Properties
- cellSeparatorColor → Color
-
The color of the lines that separates cells.
final
- cellSeparatorStrokeWidth → double
-
The width of the line that separates cells.
final
- defaultCellBackground → Color
-
The color of the lines that separates cells.
final
- defaultHeaderPalette → SwayzeHeaderPalette
-
A SwayzeHeaderPalette for the default state.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- headerSeparatorColor → Color
-
The color of the lines that separate headers.
final
- headerTextStyle → TextStyle
-
The style of the text in the headers, color will by overwritten by
SwayzeHeaderPalette.foreground.
final
- highlightedHeaderPalette → SwayzeHeaderPalette
-
A SwayzeHeaderPalette for when this header is selected.
final
-
inlineEditorShadow
→ List<
BoxShadow> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedHeaderPalette → SwayzeHeaderPalette
-
A SwayzeHeaderPalette for when this header is selected.
final
- selectionAnimationDuration → Duration
-
The duration for the implicit animation on selections move and resize.
final
- userSelectionStyle → SelectionStyle
-
The default
UserSelectionStyle
for everyTableBodySelection
with decoration omitted.final
Methods
-
copyWith(
{SwayzeHeaderPalette? defaultHeaderPalette, SwayzeHeaderPalette? selectedHeaderPalette, SwayzeHeaderPalette? highlightedHeaderPalette, Color? headerSeparatorColor, TextStyle? headerTextStyle, Color? defaultCellBackground, Color? cellSeparatorColor, double? cellSeparatorStrokeWidth, SelectionStyle? userSelectionStyle, Duration? selectionAnimationDuration, List< BoxShadow> ? inlineEditorShadow}) → SwayzeStyle - Copy an instance of SwayzeStyle with certain modifications.
-
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.
override
Static Properties
- defaultSwayzeStyle → SwayzeStyle
-
The default instance of SwayzeStyle.
latefinal