MathTex constructor

MathTex(
  1. String originalTexString, {
  2. Color color = WHITE,
  3. String argSeparator = ' ',
  4. Map<String, Color> texToColorMap = const {},
  5. List<String> subStringToIsolate = const [],
  6. String environment = 'align*',
})

Implementation

MathTex(
  String originalTexString, {
  Color color = WHITE,
  this.argSeparator = ' ',
  this.texToColorMap = const {},
  this.subStringToIsolate = const [],
  String environment = 'align*',
}) : super.deferred(color: color) {
  this.environment = environment;
  texStrings = breakUpTexStrings(
    originalTexString,
    subStringToIsolate,
    texToColorMap,
  );
  texString = texStrings.join(argSeparator);
  createMobject();
  breakUpBySubstrings();
  setColorByTexToColorMap(texToColorMap);
}