maxRotateCount property Null safety

int maxRotateCount

The maximum number of rotated log files to keep.

The default is 1 which means one backup for a total of 2 log files.

Implementation

int get maxRotateCount => _maxRotateCount;
void maxRotateCount=(int maxRotateCount)

Implementation

set maxRotateCount(int maxRotateCount) {
  if (maxRotateCount < 0) {
    throw ArgumentError.value(
      maxRotateCount,
      'maxRotateCount',
      'must be greater or the same as 0',
    );
  }
  _maxRotateCount = maxRotateCount;
}