drawMultiple method

void drawMultiple(
  1. Iterable<AbsoluteConsoleComponent> components, {
  2. bool restoreCursor = true,
  3. ConsoleCoordinate? cursor,
})

Implementation

void drawMultiple(
  Iterable<AbsoluteConsoleComponent> components, {
  bool restoreCursor = true,
  ConsoleCoordinate? cursor,
}) {
  if (restoreCursor) {
    cursor ??= getCursorPosition();
  }

  for (final component in components) {
    component.draw(this);
  }

  if (restoreCursor) {
    moveToCoordinate(cursor!);
  }
}