scale method

ThemeData scale(
  1. ThemeData theme
)

Implementation

ThemeData scale(ThemeData theme) {
  return theme.copyWith(
    radius: radiusScaling == 1 ? null : () => theme.radius * radiusScaling,
    scaling: sizeScaling == 1 ? null : () => theme.scaling * sizeScaling,
    typography:
        textScaling == 1 ? null : () => theme.typography.scale(textScaling),
    iconTheme:
        textScaling == 1 ? null : () => theme.iconTheme.scale(textScaling),
  );
}