copyWith method

SelectionTheme copyWith({
  1. Color? color,
  2. Color? borderColor,
  3. double? borderWidth,
})

Creates a copy of this theme with the specified properties replaced.

Implementation

SelectionTheme copyWith({
  Color? color,
  Color? borderColor,
  double? borderWidth,
}) {
  return SelectionTheme(
    color: color ?? this.color,
    borderColor: borderColor ?? this.borderColor,
    borderWidth: borderWidth ?? this.borderWidth,
  );
}