FTypography.inherit constructor

FTypography.inherit({
  1. required FColors colors,
  2. required bool touch,
  3. Iterable<FScalableExtension> extensions = const [],
})

Creates a FTypography that inherits its properties.

Implementation

factory FTypography.inherit({
  required FColors colors,
  required bool touch,
  Iterable<FScalableExtension<dynamic>> extensions = const [],
}) {
  final typeface = FTypeface.inherit(colors: colors, touch: touch);
  return FTypography(display: typeface, body: typeface, extensions: extensions);
}