scale abstract method

FTypographyExtension<T> scale({
  1. double sizeScalar = 1.0,
})

Scales this FTypographyExtension by sizeScalar.

Invoked by FTypography.scale for every attached extension so that custom tokens scale alongside the built‑in font sizes.

class BrandTypography extends FTypographyExtension<BrandTypography> {
  final TextStyle display;

  const BrandTypography({required this.display});

  @override
  BrandTypography scale({double sizeScalar = 1.0}) =>
      BrandTypography(display: display.copyWith(fontSize: (display.fontSize ?? 14) * sizeScalar));

  // copyWith / lerp omitted for brevity
}

Implementation

FTypographyExtension<T> scale({double sizeScalar = 1.0});