DefaultAssetBundle constructor Null safety

const DefaultAssetBundle(
  1. {Key? key,
  2. required AssetBundle bundle,
  3. required Widget child}
)

Creates a widget that determines the default asset bundle for its descendants.

The bundle and child arguments must not be null.

Implementation

const DefaultAssetBundle({
  super.key,
  required this.bundle,
  required super.child,
}) : assert(bundle != null),
     assert(child != null);