ViewConfiguration constructor Null safety

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

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,
});