copyWith method

QuillDialogTheme copyWith({
  1. TextStyle? buttonTextStyle,
  2. TextStyle? labelTextStyle,
  3. TextStyle? inputTextStyle,
  4. Color? dialogBackgroundColor,
  5. ShapeBorder? shape,
  6. ButtonStyle? buttonStyle,
  7. BoxConstraints? linkDialogConstraints,
  8. EdgeInsetsGeometry? linkDialogPadding,
  9. BoxConstraints? imageDialogConstraints,
  10. EdgeInsetsGeometry? mediaDialogPadding,
  11. bool? isWrappable,
  12. double? runSpacing,
})

Implementation

QuillDialogTheme copyWith({
  TextStyle? buttonTextStyle,
  TextStyle? labelTextStyle,
  TextStyle? inputTextStyle,
  Color? dialogBackgroundColor,
  ShapeBorder? shape,
  ButtonStyle? buttonStyle,
  BoxConstraints? linkDialogConstraints,
  EdgeInsetsGeometry? linkDialogPadding,
  BoxConstraints? imageDialogConstraints,
  EdgeInsetsGeometry? mediaDialogPadding,
  bool? isWrappable,
  double? runSpacing,
}) {
  return QuillDialogTheme(
    buttonTextStyle: buttonTextStyle ?? this.buttonTextStyle,
    labelTextStyle: labelTextStyle ?? this.labelTextStyle,
    inputTextStyle: inputTextStyle ?? this.inputTextStyle,
    dialogBackgroundColor:
        dialogBackgroundColor ?? this.dialogBackgroundColor,
    shape: shape ?? this.shape,
    buttonStyle: buttonStyle ?? this.buttonStyle,
    linkDialogConstraints:
        linkDialogConstraints ?? this.linkDialogConstraints,
    linkDialogPadding: linkDialogPadding ?? this.linkDialogPadding,
    mediaSelectorDialogConstraints:
        imageDialogConstraints ?? mediaSelectorDialogConstraints,
    mediaSelectorDialogPadding:
        mediaDialogPadding ?? mediaSelectorDialogPadding,
    isWrappable: isWrappable ?? this.isWrappable,
    runSpacing: runSpacing ?? this.runSpacing,
  );
}