havingStyleUnderBaseSize method
Returns MathOptions with size reset to MathSize.normalsize and given style. If style is not given, then the current style will be increased to at least MathStyle.text
Implementation
MathOptions havingStyleUnderBaseSize(MathStyle? style) {
style = style ?? this.style.atLeastText();
if (this.sizeUnderTextStyle == MathSize.normalsize && this.style == style) {
return this;
}
return this.copyWith(
style: style,
sizeUnderTextStyle: MathSize.normalsize,
);
}