doLayout method

  1. @override
void doLayout(
  1. Context context,
  2. TreeLayoutNode root,
  3. num width,
  4. num height,
)
override

Implementation

@override
void doLayout(Context context, TreeLayoutNode root, num width, num height) {
  bool v = direction == Direction2.ttb || direction == Direction2.btt || direction == Direction2.v;
  num w = v ? width : height;
  num h = v ? height : width;
  _innerLayout(root, diff, w, h);
  onLayoutEnd();
}