copyWith method

SelectionStyle copyWith({
  1. Color? backgroundColor,
  2. SelectionBorderSide? borderSide,
  3. bool? dashed,
})

Creates a copy of this object but with the given fields replaced with the new values.

Implementation

SelectionStyle copyWith({
  Color? backgroundColor,
  SelectionBorderSide? borderSide,
  bool? dashed,
}) {
  return SelectionStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderSide: borderSide ?? this.borderSide,
  );
}