copyWith method
TalkerSettings
copyWith({
- bool? enabled,
- bool? useHistory,
- bool? useConsoleLogs,
- int? maxHistoryItems,
- Map<
TalkerLogType, String> ? titles, - 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,
);
}