imgFromSupplier static method

Image imgFromSupplier({
  1. required String assetName,
  2. String? packageName,
  3. double? width,
  4. double? height,
  5. BoxFit? fit,
})

Implementation

static Image imgFromSupplier(
    {required String assetName, String? packageName, double? width, double? height, BoxFit? fit}) {
  return Image.asset(
    GtdString.pathForAsset(packageName, assetName),
    width: width,
    height: height,
    fit: fit,
  );
}