LogFileConfiguration constructor Null safety

LogFileConfiguration(
  1. {required String directory,
  2. bool usePlainText = false,
  3. int? maxSize,
  4. int? maxRotateCount}
)

Creates the configuration for log files.

Implementation

LogFileConfiguration({
  required this.directory,
  this.usePlainText = false,
  int? maxSize,
  int? maxRotateCount,
}) {
  this.maxSize = maxSize ?? this.maxSize;
  this.maxRotateCount = maxRotateCount ?? this.maxRotateCount;
}