Typeface constructor

const Typeface({
  1. required TextTheme background,
  2. required TextTheme foreground,
  3. required TextTheme primary,
  4. required TextTheme secondary,
  5. required TextTheme ascent,
  6. TextTheme? onPrimary,
  7. TextTheme? onSecondary,
  8. TextTheme? onAscent,
  9. required TextTheme success,
  10. required TextTheme error,
  11. required TextTheme warning,
})

Implementation

const Typeface({
  required this.background,
  required this.foreground,
  required this.primary,
  required this.secondary,
  required this.ascent,
  TextTheme? onPrimary,
  TextTheme? onSecondary,
  TextTheme? onAscent,
  required this.success,
  required this.error,
  required this.warning,
})  : _primary = onPrimary,
      _secondary = onSecondary,
      _ascent = onAscent;