DefaultAssetBundle({Key key, @required AssetBundle bundle, @required Widget child })

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

The bundle and child arguments must not be null.

Source

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