LoggerEntity constructor Null safety

LoggerEntity(
  1. {required LogLevel logLevel,
  2. required String message,
  3. DateTime? timeStamp,
  4. Map<String, dynamic>? data,
  5. Object? error,
  6. StackTrace? stackTrace,
  7. String? source,
  8. String? loggerName,
  9. required String id}
)

Implementation

LoggerEntity({
  required this.logLevel,
  required this.message,
  DateTime? timeStamp,
  this.data,
  this.error,
  this.stackTrace,
  this.source,
  this.loggerName,
  // From Entity
  required String id,
}) : super(
        // From Entity
        id: id,
      ){
        this.timeStamp= timeStamp!;
      }