copyWith method
LatexStyle
copyWith({
- TextStyle? textStyle,
- EdgeInsetsGeometry? padding,
- Color? backgroundColor,
- Radius? borderRadius,
- bool? scrollBlockHorizontally,
A copy with the given fields replaced.
Implementation
LatexStyle copyWith({
TextStyle? textStyle,
EdgeInsetsGeometry? padding,
Color? backgroundColor,
Radius? borderRadius,
bool? scrollBlockHorizontally,
}) {
return LatexStyle(
textStyle: textStyle ?? this.textStyle,
padding: padding ?? this.padding,
backgroundColor: backgroundColor ?? this.backgroundColor,
borderRadius: borderRadius ?? this.borderRadius,
scrollBlockHorizontally:
scrollBlockHorizontally ?? this.scrollBlockHorizontally,
);
}