copyWith method

HelpColorScheme copyWith({
  1. Color? heading,
  2. Color? command,
  3. Color? option,
  4. Color? description,
  5. Color? error,
  6. Color? emphasis,
  7. Color? namespace,
})

Creates a copy of this scheme with the given fields replaced.

Implementation

HelpColorScheme copyWith({
  Color? heading,
  Color? command,
  Color? option,
  Color? description,
  Color? error,
  Color? emphasis,
  Color? namespace,
}) {
  return HelpColorScheme(
    heading: heading ?? this.heading,
    command: command ?? this.command,
    option: option ?? this.option,
    description: description ?? this.description,
    error: error ?? this.error,
    emphasis: emphasis ?? this.emphasis,
    namespace: namespace ?? this.namespace,
  );
}