DOMRectInit constructor

DOMRectInit({
  1. dynamic x,
  2. dynamic y,
  3. dynamic width,
  4. dynamic height,
})

Implementation

factory DOMRectInit(
        {/* double | NaN */ dynamic x,
        /* double | NaN */ dynamic y,
        /* double | NaN */ dynamic width,
        /* double | NaN */ dynamic height}) =>
    DOMRectInit._(
        x: x ?? 0, y: y ?? 0, width: width ?? 0, height: height ?? 0);