AssetBundleImageKey constructor Null safety

const AssetBundleImageKey(
  1. {required AssetBundle bundle,
  2. required String name,
  3. required double scale}
)

Creates the key for an AssetImage or AssetBundleImageProvider.

The arguments must not be null.

Implementation

const AssetBundleImageKey({
  required this.bundle,
  required this.name,
  required this.scale,
}) : assert(bundle != null),
     assert(name != null),
     assert(scale != null);