copyWith method

TalkerSettings copyWith({
  1. bool? enabled,
  2. bool? useHistory,
  3. bool? useConsoleLogs,
  4. int? maxHistoryItems,
  5. Map<TalkerLogType, String>? titles,
  6. Map<TalkerLogType, AnsiPen>? colors,
})

Implementation

TalkerSettings copyWith({
  bool? enabled,
  bool? useHistory,
  bool? useConsoleLogs,
  int? maxHistoryItems,
  Map<TalkerLogType, String>? titles,
  Map<TalkerLogType, AnsiPen>? colors,
}) {
  return TalkerSettings(
    useHistory: useHistory ?? _useHistory,
    useConsoleLogs: useConsoleLogs ?? _useConsoleLogs,
    maxHistoryItems: maxHistoryItems ?? _maxHistoryItems,
    enabled: enabled ?? this.enabled,
    titles: titles ?? this.titles,
    colors: colors ?? this.colors,
  );
}