havingSize method

MathOptions havingSize(
  1. MathSize size
)

Returns MathOptions with their user-declared size set to given size

Implementation

MathOptions havingSize(MathSize size) {
  if (this.size == size && this.sizeUnderTextStyle == size) return this;
  return this.copyWith(
    style: style.atLeastText(),
    sizeUnderTextStyle: size,
  );
}