SelectionStyle.semiTransparent constructor
Create a SelectionStyle with the predefined relation between border and background.
This creates a SelectionStyle with a semi transparent background and a
border both styled with color
.
See also:
- UserSelectionModel in which usually uses style for this defined on SwayzeStyle
Implementation
SelectionStyle.semiTransparent({
required Color color,
double borderWidth = 2.0,
}) : this(
backgroundColor: color.withOpacity(0.20),
borderSide: SelectionBorderSide.solid(
color: color,
width: borderWidth,
),
);