copyWith method

  1. @override
KiteTypography copyWith({
  1. TextStyle? display,
  2. TextStyle? h1,
  3. TextStyle? h2,
  4. TextStyle? h3,
  5. TextStyle? title,
  6. TextStyle? bodyLarge,
  7. TextStyle? body,
  8. TextStyle? bodySmall,
  9. TextStyle? label,
  10. TextStyle? labelSmall,
  11. TextStyle? caption,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
KiteTypography copyWith({
  TextStyle? display,
  TextStyle? h1,
  TextStyle? h2,
  TextStyle? h3,
  TextStyle? title,
  TextStyle? bodyLarge,
  TextStyle? body,
  TextStyle? bodySmall,
  TextStyle? label,
  TextStyle? labelSmall,
  TextStyle? caption,
}) {
  return KiteTypography(
    display: display ?? this.display,
    h1: h1 ?? this.h1,
    h2: h2 ?? this.h2,
    h3: h3 ?? this.h3,
    title: title ?? this.title,
    bodyLarge: bodyLarge ?? this.bodyLarge,
    body: body ?? this.body,
    bodySmall: bodySmall ?? this.bodySmall,
    label: label ?? this.label,
    labelSmall: labelSmall ?? this.labelSmall,
    caption: caption ?? this.caption,
  );
}