TalkerSettings constructor
TalkerSettings({
- bool enabled = true,
- bool useHistory = true,
- bool useConsoleLogs = true,
- int maxHistoryItems = 1000,
- Map<
TalkerLogType, String> titles = _defaultTitles, - Map<
TalkerLogType, AnsiPen> ? colors,
Implementation
TalkerSettings({
this.enabled = true,
bool useHistory = true,
bool useConsoleLogs = true,
int maxHistoryItems = 1000,
this.titles = _defaultTitles,
Map<TalkerLogType, AnsiPen>? colors,
}) : _useHistory = useHistory,
_useConsoleLogs = useConsoleLogs,
_maxHistoryItems = maxHistoryItems {
if (colors != null) {
_defaultColors.addAll(colors);
}
this.colors.addAll(_defaultColors);
}