SelectionStyle class

A decoration used in the widget tree to render a visual representation of a Selection.

Annotations

Constructors

SelectionStyle({required Color? backgroundColor, required SelectionBorderSide borderSide})
const
SelectionStyle.dashedBorderOnly({required Color color, double borderWidth = 1.0})
Create a SelectionStyle with the predefined relation between border and background.
SelectionStyle.semiTransparent({required Color color, double borderWidth = 2.0})
Create a SelectionStyle with the predefined relation between border and background.

Properties

backgroundColor Color?
final
borderSide SelectionBorderSide
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Color? backgroundColor, SelectionBorderSide? borderSide, bool? dashed}) SelectionStyle
Creates a copy of this object but with the given fields replaced with the new values.
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