copyWith method
SelectableTextTheme
copyWith({
- ValueGetter<
double?> ? cursorWidth, - ValueGetter<
double?> ? cursorHeight, - ValueGetter<
Radius?> ? cursorRadius, - ValueGetter<
Color?> ? cursorColor, - ValueGetter<
BoxHeightStyle?> ? selectionHeightStyle, - ValueGetter<
BoxWidthStyle?> ? selectionWidthStyle, - ValueGetter<
bool?> ? enableInteractiveSelection,
Implementation
SelectableTextTheme copyWith({
ValueGetter<double?>? cursorWidth,
ValueGetter<double?>? cursorHeight,
ValueGetter<Radius?>? cursorRadius,
ValueGetter<Color?>? cursorColor,
ValueGetter<ui.BoxHeightStyle?>? selectionHeightStyle,
ValueGetter<ui.BoxWidthStyle?>? selectionWidthStyle,
ValueGetter<bool?>? enableInteractiveSelection,
}) {
return SelectableTextTheme(
cursorWidth: cursorWidth == null ? this.cursorWidth : cursorWidth(),
cursorHeight: cursorHeight == null ? this.cursorHeight : cursorHeight(),
cursorRadius: cursorRadius == null ? this.cursorRadius : cursorRadius(),
cursorColor: cursorColor == null ? this.cursorColor : cursorColor(),
selectionHeightStyle: selectionHeightStyle == null
? this.selectionHeightStyle
: selectionHeightStyle(),
selectionWidthStyle: selectionWidthStyle == null
? this.selectionWidthStyle
: selectionWidthStyle(),
enableInteractiveSelection: enableInteractiveSelection == null
? this.enableInteractiveSelection
: enableInteractiveSelection(),
);
}