useSize method

void useSize(
  1. dynamic builder(
    1. Niku child,
    2. Size constraints
    )
)

Implementation

void useSize(Function(Niku child, Size constraints) builder) {
  useChild(
    (child) => LayoutBuilder(
      builder: (context, constraints) => builder(
        child.build(context).niku,
        Size(constraints.maxWidth, constraints.maxHeight),
      ),
    ),
  );
}