DefaultAssetBundle constructor

const 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.

Implementation

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