SelectionStyle.semiTransparent constructor

SelectionStyle.semiTransparent({
  1. required Color color,
  2. double borderWidth = 2.0,
})

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:

Implementation

SelectionStyle.semiTransparent({
  required Color color,
  double borderWidth = 2.0,
}) : this(
        backgroundColor: color.withOpacity(0.20),
        borderSide: SelectionBorderSide.solid(
          color: color,
          width: borderWidth,
        ),
      );