ViewportConfiguration.raw constructor
const
ViewportConfiguration.raw({
- bool extendPage = false,
- double minFraction = 0.9,
- double maxFraction = 1.0,
- ViewportInset minInset = ViewportInset.expanded,
- ViewportInset maxInset = ViewportInset.shrunk,
- ViewportInset shrunkInset = ViewportInset.shrunk,
- ViewportInset expandedInset = ViewportInset.expanded,
- ViewportInset initialInset = ViewportInset.shrunk,
- 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,
],
});