copyLayout method

@config reference ~ copy umbra

Implementation

T copyLayout(LayoutConfig layout) {
  final iN = layout().iN as LayoutConfigIN;
  return update(
    (data) => data
      ..resolve(iN.width, #width)
      ..resolve(iN.height, #height)
      ..resolve(iN.widthFactor, #widthFactor)
      ..resolve(iN.heightFactor, #heightFactor)
      ..resolve(iN.alignment, #alignment)
      ..resolve(iN.padding, #padding)
      ..resolve(iN.margin, #margin)
      ..resolve(iN.constraints, #constraints),
  );
}