Log constructor

Log({
  1. required LogType type,
  2. required LogInfo info,
  3. String? message,
  4. String? error,
  5. String? date,
})

Implementation

Log({
  required this.type,
  required this.info,
  this.message,
  this.error,
  String? date,
}) : date = (date != null) ? date : _getDate();