RasterWidget constructor Null safety

const RasterWidget(
  1. {Key? key,
  2. RasterWidgetDelegate delegate = const _RasterDefaultDelegate(),
  3. RasterWidgetFallbackDelegate? fallback,
  4. RasterizeMode mode = RasterizeMode.enabled,
  5. required RasterWidgetController controller,
  6. required Widget? child}
)

Create a new RasterWidget.

The controller and child arguments are required.

Implementation

const RasterWidget({
  super.key,
  this.delegate = const _RasterDefaultDelegate(),
  this.fallback,
  this.mode = RasterizeMode.enabled,
  required this.controller,
  required super.child
});