Log constructor

Log({
  1. required String message,
  2. Object? data,
  3. DateTime? timestamp,
})

The most basic Log.

Used to contain the main data of the Log

Implementation

Log({
  required this.message,
  this.data,
  DateTime? timestamp,
}) {
  this.timestamp = timestamp ?? DateTime.now();
}