copyWith method
Creates a copy of this text theme but with the given fields replaced with the new values.
Consider using ArnaTypography.light or ArnaTypography.dark as a starting point.
See also:
Implementation
ArnaTextTheme copyWith({
TextStyle? displayTextStyle,
TextStyle? headlineTextStyle,
TextStyle? titleTextStyle,
TextStyle? bodyTextStyle,
TextStyle? subtitleTextStyle,
TextStyle? buttonTextStyle,
TextStyle? captionTextStyle,
}) {
return ArnaTextTheme(
displayTextStyle: displayTextStyle ?? _displayTextStyle,
headlineTextStyle: headlineTextStyle ?? _headlineTextStyle,
titleTextStyle: titleTextStyle ?? _titleTextStyle,
bodyTextStyle: bodyTextStyle ?? _bodyTextStyle,
subtitleTextStyle: subtitleTextStyle ?? _subtitleTextStyle,
buttonTextStyle: buttonTextStyle ?? _buttonTextStyle,
captionTextStyle: captionTextStyle ?? _captionTextStyle,
);
}