Log constructor
Log(})
Implementation
Log(
this.data, {
this.title = "LOG",
this.name = "info",
this.zone,
this.dateTimeNow,
this.dateTimeStart,
this.error,
this.stackTrace,
bool? isPrintToTerminal = true,
}) {
dateTimeStart ??= DateTime.now();
dateTimeNow ??= DateTime.now();
if (isPrintToTerminal is bool) {
if (isPrintToTerminal) {
printToTerminal();
}
} else {
// dart
if (Dart.isDebug) {
printToTerminal();
}
}
}