MutableOverlayState.from constructor

MutableOverlayState.from(
  1. OverlayState? other
)

Creates a mutable state by copying values from other.

Implementation

factory MutableOverlayState.from(OverlayState? other) {
  if (other == null) return MutableOverlayState();
  if (other is MutableOverlayState) return other;
  return MutableOverlayState(
      captureEvents: other.captureEvents,
      left: other.left,
      top: other.top,
      right: other.right,
      bottom: other.bottom,
      width: other.width,
      minWidth: other.minWidth,
      height: other.height,
      zIndex: other.zIndex,
      visibility: other.visibility,
      position: other.position);
}