copyWith method

HelpModel copyWith({
  1. int? width,
  2. bool? showAll,
  3. HelpStyles? styles,
})

Creates a copy with the given fields replaced.

Implementation

HelpModel copyWith({int? width, bool? showAll, HelpStyles? styles}) {
  return HelpModel(
    width: width ?? this.width,
    showAll: showAll ?? this.showAll,
    styles: styles ?? this.styles,
  );
}