ViewConfiguration constructor Null safety

const ViewConfiguration(
  1. {Size size = Size.zero,
  2. double devicePixelRatio = 1.0}
)

Creates a view configuration.

By default, the view has zero size and a devicePixelRatio of 1.0.

Implementation

const ViewConfiguration({
  this.size = Size.zero,
  this.devicePixelRatio = 1.0,
});