copyWith method

MiniTypographyTokens copyWith({
  1. TextStyle? body,
  2. TextStyle? small,
  3. TextStyle? title,
  4. TextStyle? heading,
})

Implementation

MiniTypographyTokens copyWith({
  TextStyle? body,
  TextStyle? small,
  TextStyle? title,
  TextStyle? heading,
}) {
  return MiniTypographyTokens(
    body: body ?? this.body,
    small: small ?? this.small,
    title: title ?? this.title,
    heading: heading ?? this.heading,
  );
}