SelectionStyle.dashedBorderOnly constructor

SelectionStyle.dashedBorderOnly({
  1. required Color color,
  2. double borderWidth = 1.0,
})

Create a SelectionStyle with the predefined relation between border and background.

Implementation

SelectionStyle.dashedBorderOnly({
  required Color color,
  double borderWidth = 1.0,
}) : this(
        backgroundColor: null,
        borderSide: SelectionBorderSide.dashed(
          color: color,
          width: borderWidth,
        ),
      );