scale method

FolderViewLineTheme scale(
  1. double factor
)

Returns a scaled copy with lineWidth multiplied by factor.

Identity: scale(1.0) returns this (no allocation).

Implementation

FolderViewLineTheme scale(double factor) {
  assert(factor > 0, 'scale factor must be > 0, got $factor');
  if (factor == 1.0) return this;
  return copyWith(lineWidth: lineWidth * factor);
}