withColor method

MathOptions withColor(
  1. Color color
)

Returns MathOptions with given text color

Implementation

MathOptions withColor(Color color) {
  if (this.color == color) return this;
  return this.copyWith(color: color);
}