copyWith method

QuillToolbarSelectHeaderStyleDropdownButtonOptions copyWith({
  1. ValueChanged<String>? onSelected,
  2. List<Attribute<int>>? attributes,
  3. TextStyle? style,
  4. double? iconSize,
  5. double? iconButtonFactor,
  6. IconData? iconData,
  7. VoidCallback? afterButtonPressed,
  8. String? tooltip,
  9. QuillIconTheme? iconTheme,
  10. String? defaultDisplayText,
  11. double? width,
})

Implementation

QuillToolbarSelectHeaderStyleDropdownButtonOptions copyWith({
  ValueChanged<String>? onSelected,
  List<Attribute<int>>? attributes,
  TextStyle? style,
  double? iconSize,
  double? iconButtonFactor,
  IconData? iconData,
  VoidCallback? afterButtonPressed,
  String? tooltip,
  QuillIconTheme? iconTheme,
  String? defaultDisplayText,
  double? width,
}) {
  return QuillToolbarSelectHeaderStyleDropdownButtonOptions(
    attributes: attributes ?? this.attributes,
    iconData: iconData ?? this.iconData,
    afterButtonPressed: afterButtonPressed ?? this.afterButtonPressed,
    tooltip: tooltip ?? this.tooltip,
    iconTheme: iconTheme ?? this.iconTheme,
    iconSize: iconSize ?? this.iconSize,
    iconButtonFactor: iconButtonFactor ?? this.iconButtonFactor,
    defaultDisplayText: defaultDisplayText ?? this.defaultDisplayText,
    width: width ?? this.width,
  );
}