copyWith method
CPDFCustomToolbarItem
copyWith({
- String? identifier,
- String? title,
- String? icon,
- CPDFToolbarAction? action,
Creates a copy with selective overrides.
Implementation
CPDFCustomToolbarItem copyWith({
String? identifier,
String? title,
String? icon,
CPDFToolbarAction? action,
}) {
return CPDFCustomToolbarItem(
identifier: identifier ?? this.identifier,
title: title ?? this.title,
icon: icon ?? this.icon,
action: action ?? this.action,
);
}