copyWith method

MathOptions copyWith({
  1. MathStyle? style,
  2. Color? color,
  3. MathSize? sizeUnderTextStyle,
  4. FontOptions? textFontOptions,
  5. FontOptions? mathFontOptions,
})

Utility method copyWith

Implementation

MathOptions copyWith({
  MathStyle? style,
  Color? color,
  MathSize? sizeUnderTextStyle,
  FontOptions? textFontOptions,
  FontOptions? mathFontOptions,
  // double maxSize,
  // num minRuleThickness,
}) =>
    MathOptions._(
      fontSize: this.fontSize,
      logicalPpi: this.logicalPpi,
      style: style ?? this.style,
      color: color ?? this.color,
      sizeUnderTextStyle: sizeUnderTextStyle ?? this.sizeUnderTextStyle,
      textFontOptions: textFontOptions ?? this.textFontOptions,
      mathFontOptions: mathFontOptions ?? this.mathFontOptions,
      // maxSize: maxSize ?? this.maxSize,
      // minRuleThickness: minRuleThickness ?? this.minRuleThickness,
    );