Resolution.dimensions constructor
Resolution.dimensions({})
Crates a newinstance based on nativeWidth, nativeHeight and scaleFactor
Implementation
factory Resolution.dimensions({
required double nativeWidth,
required double nativeHeight,
required double scaleFactor,
}) {
return Resolution(
nativeSize: DeviceSize(
width: nativeWidth,
height: nativeHeight,
),
scaleFactor: scaleFactor,
);
}