imgFromCommon static method

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

Implementation

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