ViewConfiguration constructor Null safety

const ViewConfiguration(
  1. {FlutterView? window,
  2. double devicePixelRatio = 1.0,
  3. Rect geometry = Rect.zero,
  4. bool visible = false,
  5. WindowPadding viewInsets = WindowPadding.zero,
  6. WindowPadding viewPadding = WindowPadding.zero,
  7. WindowPadding systemGestureInsets = WindowPadding.zero,
  8. WindowPadding padding = WindowPadding.zero,
  9. GestureSettings gestureSettings = const GestureSettings(),
  10. List<DisplayFeature> displayFeatures = const <DisplayFeature>[]}
)

A const constructor for an immutable ViewConfiguration.

Implementation

const ViewConfiguration({
  this.window,
  this.devicePixelRatio = 1.0,
  this.geometry = Rect.zero,
  this.visible = false,
  this.viewInsets = WindowPadding.zero,
  this.viewPadding = WindowPadding.zero,
  this.systemGestureInsets = WindowPadding.zero,
  this.padding = WindowPadding.zero,
  this.gestureSettings = const GestureSettings(),
  this.displayFeatures = const <DisplayFeature>[],
});