copyWith method

QuillToolbarFontSizeButtonOptions copyWith({
  1. double? iconSize,
  2. double? iconButtonFactor,
  3. double? hoverElevation,
  4. double? highlightElevation,
  5. List<PopupMenuEntry<String>>? items,
  6. Map<String, String>? rawItemsMap,
  7. ValueChanged<String>? onSelected,
  8. Attribute? attribute,
  9. EdgeInsetsGeometry? padding,
  10. TextStyle? style,
  11. double? width,
  12. String? initialValue,
  13. TextOverflow? labelOverflow,
  14. double? itemHeight,
  15. EdgeInsets? itemPadding,
  16. Color? defaultItemColor,
  17. VoidCallback? afterButtonPressed,
  18. String? tooltip,
  19. OutlinedBorder? shape,
  20. String? defaultDisplayText,
})

Implementation

QuillToolbarFontSizeButtonOptions copyWith({
  double? iconSize,
  double? iconButtonFactor,
  double? hoverElevation,
  double? highlightElevation,
  List<PopupMenuEntry<String>>? items,
  Map<String, String>? rawItemsMap,
  ValueChanged<String>? onSelected,
  Attribute? attribute,
  EdgeInsetsGeometry? padding,
  TextStyle? style,
  double? width,
  String? initialValue,
  TextOverflow? labelOverflow,
  double? itemHeight,
  EdgeInsets? itemPadding,
  Color? defaultItemColor,
  VoidCallback? afterButtonPressed,
  String? tooltip,
  OutlinedBorder? shape,
  String? defaultDisplayText,
}) {
  return QuillToolbarFontSizeButtonOptions(
    iconSize: iconSize ?? this.iconSize,
    iconButtonFactor: iconButtonFactor ?? this.iconButtonFactor,
    rawItemsMap: rawItemsMap ?? this.rawItemsMap,
    onSelected: onSelected ?? this.onSelected,
    attribute: attribute ?? this.attribute,
    padding: padding ?? this.padding,
    style: style ?? this.style,
    // ignore: deprecated_member_use_from_same_package
    width: width ?? this.width,
    initialValue: initialValue ?? this.initialValue,
    labelOverflow: labelOverflow ?? this.labelOverflow,
    // ignore: deprecated_member_use_from_same_package
    itemHeight: itemHeight ?? this.itemHeight,
    // ignore: deprecated_member_use_from_same_package
    itemPadding: itemPadding ?? this.itemPadding,
    defaultItemColor: defaultItemColor ?? this.defaultItemColor,
    tooltip: tooltip ?? super.tooltip,
    afterButtonPressed: afterButtonPressed ?? super.afterButtonPressed,
    defaultDisplayText: defaultDisplayText ?? this.defaultDisplayText,
  );
}