copyWith method

  1. @override
KiteTypography copyWith({
  1. TextStyle? display,
  2. TextStyle? heading,
  3. TextStyle? section,
  4. TextStyle? title,
  5. TextStyle? lead,
  6. TextStyle? body,
  7. TextStyle? paragraph,
  8. TextStyle? label,
  9. TextStyle? labelSmall,
  10. 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? heading,
  TextStyle? section,
  TextStyle? title,
  TextStyle? lead,
  TextStyle? body,
  TextStyle? paragraph,
  TextStyle? label,
  TextStyle? labelSmall,
  TextStyle? caption,
}) {
  return KiteTypography(
    display: display ?? this.display,
    heading: heading ?? this.heading,
    section: section ?? this.section,
    title: title ?? this.title,
    lead: lead ?? this.lead,
    body: body ?? this.body,
    paragraph: paragraph ?? this.paragraph,
    label: label ?? this.label,
    labelSmall: labelSmall ?? this.labelSmall,
    caption: caption ?? this.caption,
  );
}