scale method

FolderViewSpacingTheme scale(
  1. double factor
)

Returns a scaled copy with contentPadding multiplied by factor.

Identity: scale(1.0) returns this.

Implementation

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