child method

  1. @override
Terminal child(
  1. int x,
  2. int y,
  3. int width,
  4. int height,
)
override

Flatten out child terminals to always draw onto the same root

Implementation

@override
Terminal child(int x, int y, int width, int height) {
  boundsCheck(x, y);
  boundsCheck(x + width - 1, y + height - 1);
  return ChildTerminal(_position + Vec2(x, y), Vec2(width, height), _root);
}