ViewportAPI constructor

ViewportAPI({
  1. Vector? center,
  2. num? zoom,
  3. Rect? bounds,
  4. SlidesView? slidesView,
  5. void scrollAndZoomIntoView(
    1. ReadonlyArray<Object>
    )?,
})

Implementation

factory ViewportAPI({
  _i3.Vector? center,
  _i2.num? zoom,
  _i3.Rect? bounds,
  _i3.SlidesView? slidesView,
  void Function(_i4.ReadonlyArray<_i2.Object>)? scrollAndZoomIntoView,
}) =>
    ViewportAPI._(
      center: center ?? _i7.undefined,
      zoom: zoom,
      bounds: bounds ?? _i7.undefined,
      slidesView: slidesView?.name ?? _i7.undefined,
      scrollAndZoomIntoView: scrollAndZoomIntoView == null
          ? null
          : _i5.allowInterop(scrollAndZoomIntoView),
    );