RenderRasterWidget constructor Null safety

RenderRasterWidget(
  1. {required RasterWidgetDelegate delegate,
  2. required double devicePixelRatio,
  3. required RasterWidgetController controller,
  4. required RasterizeMode mode,
  5. RasterWidgetFallbackDelegate? fallback}
)

Create a new RenderRasterWidget.

Implementation

RenderRasterWidget({
  required RasterWidgetDelegate delegate,
  required double devicePixelRatio,
  required RasterWidgetController controller,
  required RasterizeMode mode,
  RasterWidgetFallbackDelegate? fallback,
}) : _delegate = delegate,
     _devicePixelRatio = devicePixelRatio,
     _controller = controller,
     _fallback = fallback,
     _mode = mode;