copyWith method

CPDFCustomToolbarItem copyWith({
  1. String? identifier,
  2. String? title,
  3. String? icon,
  4. 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,
  );
}