TalkerData class

Base Talker Data transfer object Objects of this type are passed through handlers observer and stream

Available extensions

Constructors

TalkerData.new(String? message, {LogLevel? logLevel, Object? exception, Error? error, StackTrace? stackTrace, String? title = 'log', DateTime? time, AnsiPen? pen, String? key})

Properties

displayError String

Available on TalkerData, provided by the FieldsToDisplay extension

Displayed error of TalkerData
no setter
displayException String

Available on TalkerData, provided by the FieldsToDisplay extension

Displayed exception of TalkerData
no setter
displayMessage String

Available on TalkerData, provided by the FieldsToDisplay extension

Displayed message of TalkerData
no setter
displayStackTrace String

Available on TalkerData, provided by the FieldsToDisplay extension

Displayed stackTrace of TalkerData
no setter
error Error?
Error? error - error if it happened
final
exception Object?
Exception? exception - exception if it happened
final
hashCode int
The hash code for this object.
no setterinherited
key String?
final
logLevel LogLevel?
LogLevel logLevel - to control logging output
final
message String?
String message - message describes what happened
final
pen AnsiPen?
AnsiPen? pen - sets your own log color for console
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
StackTrace?] stackTrace - stackTrace if exception or error happened
final
time DateTime
Internal time when the log occurred
no setter
title String?
Title of Talker log
getter/setter pair

Methods

displayTime({TimeFormat timeFormat = TimeFormat.timeAndSeconds}) String

Available on TalkerData, provided by the FieldsToDisplay extension

Displayed tile of TalkerData
displayTitleWithTime({TimeFormat timeFormat = TimeFormat.timeAndSeconds}) String

Available on TalkerData, provided by the FieldsToDisplay extension

Displayed title of TalkerData
generateTextMessage({TimeFormat timeFormat = TimeFormat.timeAndSeconds}) String
Internal method that generates a complete message about the event
getFlutterColor(TalkerScreenTheme theme) Color

Available on TalkerData, provided by the TalkerDataFlutterExt extension

If key field is not provided trying to use color by LogLevel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited