copyWith method

CliTheme copyWith({
  1. ThemeData? data,
  2. Style? detail,
  3. Style? info,
  4. Style? success,
  5. Style? warning,
  6. Style? error,
  7. Style? alert,
  8. Style? question,
  9. Style? answer,
  10. Style? hint,
})

This theme with the fields given replaced.

Implementation

CliTheme copyWith({
  ThemeData? data,
  Style? detail,
  Style? info,
  Style? success,
  Style? warning,
  Style? error,
  Style? alert,
  Style? question,
  Style? answer,
  Style? hint,
}) => CliTheme(
  data: data ?? this.data,
  detail: detail ?? _detail,
  info: info ?? _info,
  success: success ?? _success,
  warning: warning ?? _warning,
  error: error ?? _error,
  alert: alert ?? _alert,
  question: question ?? _question,
  answer: answer ?? _answer,
  hint: hint ?? _hint,
);