TalkerSettings constructor

TalkerSettings({
  1. bool enabled = true,
  2. bool useHistory = true,
  3. bool useConsoleLogs = true,
  4. int maxHistoryItems = 1000,
  5. Map<TalkerLogType, String> titles = _defaultTitles,
  6. 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);
}