ViewportConfiguration.raw constructor

const ViewportConfiguration.raw({
  1. bool extendPage = false,
  2. double minFraction = 0.9,
  3. double maxFraction = 1.0,
  4. ViewportInset minInset = ViewportInset.expanded,
  5. ViewportInset maxInset = ViewportInset.shrunk,
  6. ViewportInset shrunkInset = ViewportInset.shrunk,
  7. ViewportInset expandedInset = ViewportInset.expanded,
  8. ViewportInset initialInset = ViewportInset.shrunk,
  9. List<ViewportInset> snapInsets = const [ViewportInset.expanded, ViewportInset.shrunk],
})

A general constructor for ViewportConfiguration.

It is recommended to use ViewportConfiguration.new, which is a convenient constructor sufficient for most use cases.

Implementation

const ViewportConfiguration.raw({
  this.extendPage = false,
  this.minFraction = 0.9,
  this.maxFraction = 1.0,
  this.minInset = ViewportInset.expanded,
  this.maxInset = ViewportInset.shrunk,
  this.shrunkInset = ViewportInset.shrunk,
  this.expandedInset = ViewportInset.expanded,
  this.initialInset = ViewportInset.shrunk,
  this.snapInsets = const [
    ViewportInset.expanded,
    ViewportInset.shrunk,
  ],
});