merge method

LayoutProps merge(
  1. LayoutProps other
)

Create a new LayoutProps object by merging this one with another

Implementation

LayoutProps merge(LayoutProps other) {
  return LayoutProps(
    width: other.width ?? width,
    height: other.height ?? height,
    minWidth: other.minWidth ?? minWidth,
    maxWidth: other.maxWidth ?? maxWidth,
    minHeight: other.minHeight ?? minHeight,
    maxHeight: other.maxHeight ?? maxHeight,
    margin: other.margin ?? margin,
    marginTop: other.marginTop ?? marginTop,
    marginRight: other.marginRight ?? marginRight,
    marginBottom: other.marginBottom ?? marginBottom,
    marginLeft: other.marginLeft ?? marginLeft,
    marginHorizontal: other.marginHorizontal ?? marginHorizontal,
    marginVertical: other.marginVertical ?? marginVertical,
    padding: other.padding ?? padding,
    paddingTop: other.paddingTop ?? paddingTop,
    paddingRight: other.paddingRight ?? paddingRight,
    paddingBottom: other.paddingBottom ?? paddingBottom,
    paddingLeft: other.paddingLeft ?? paddingLeft,
    paddingHorizontal: other.paddingHorizontal ?? paddingHorizontal,
    paddingVertical: other.paddingVertical ?? paddingVertical,
    position: other.position ?? position,
    absoluteLayout: other.absoluteLayout ?? absoluteLayout,
    rotateInDegrees: other.rotateInDegrees ?? rotateInDegrees,
    scale: other.scale ?? scale,
    scaleX: other.scaleX ?? scaleX,
    scaleY: other.scaleY ?? scaleY,
    flexDirection: other.flexDirection ?? flexDirection,
    justifyContent: other.justifyContent ?? justifyContent,
    alignItems: other.alignItems ?? alignItems,
    alignSelf: other.alignSelf ?? alignSelf,
    alignContent: other.alignContent ?? alignContent,
    flexWrap: other.flexWrap ?? flexWrap,
    flex: other.flex ?? flex,
    flexGrow: other.flexGrow ?? flexGrow,
    flexShrink: other.flexShrink ?? flexShrink,
    flexBasis: other.flexBasis ?? flexBasis,
    display: other.display ?? display,
    overflow: other.overflow ?? overflow,
    direction: other.direction ?? direction,
    aspectRatio: other.aspectRatio ?? aspectRatio,
    gap: other.gap ?? gap,
    rowGap: other.rowGap ?? rowGap,
    columnGap: other.columnGap ?? columnGap,
    borderWidth: other.borderWidth ?? borderWidth,
  );
}