copyWith method

LatexStyle copyWith({
  1. TextStyle? textStyle,
  2. EdgeInsetsGeometry? padding,
  3. Color? backgroundColor,
  4. Radius? borderRadius,
  5. 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,
  );
}