DefaultAssetBundle constructor

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({
  Key key,
  @required this.bundle,
  @required Widget child,
}) : assert(bundle != null),
     assert(child != null),
     super(key: key, child: child);