FixedResolutionViewport constructor

FixedResolutionViewport({
  1. required Vector2 resolution,
  2. Iterable<Component>? children,
})

Implementation

FixedResolutionViewport({
  required this.resolution,
  super.children,
}) : super(aspectRatio: resolution.x / resolution.y);