preload static method

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

Implementation

static void preload(
  String originalTexString, {
  String argSeparator = ' ',
  Map<String, Color> texToColorMap = const {},
  List<String> subStringToIsolate = const [],
  String environment = 'align*',
}) {
  var texStrings = breakUpTexStrings(
    originalTexString,
    subStringToIsolate,
    texToColorMap,
  );
  var fullString = texStrings.join(argSeparator);

  for (var texString in [...texStrings, fullString]) {
    SingleStringMathTex.preload(texString, environment);
  }
}