mirror method

void mirror(
  1. String direction,
  2. String languageCode
)

It takes a direction as a parameter, and then it calls the mirror function on the _interpreter object, passing the direction as a parameter

Args: direction (String): The direction to mirror the image.

Implementation

void mirror(String direction, String languageCode) {
  final String code = "mirror($direction)";
  _interpreter.validateOnScheme(code, SchemasReader().currentIndex);
  validCommandsBuffer.add(code);
  allCommandsBuffer.addAll(parseToContainer(code, languageCode));
  notifyListeners();
}