havingStyle method

MathOptions havingStyle(
  1. MathStyle style
)

Returns MathOptions with given MathStyle

Implementation

MathOptions havingStyle(MathStyle style) {
  if (this.style == style) return this;
  return this.copyWith(
    style: style,
  );
}