getAssetImageWithColor static method

Image getAssetImageWithColor(
  1. String assetFilePath,
  2. Color? color
)

Implementation

static Image getAssetImageWithColor(String assetFilePath, Color? color) {
  if (!assetFilePath.startsWith('assets')) {
    assetFilePath = 'assets/$assetFilePath';
  }
  return Image.asset(
    assetFilePath,
    color: color,
    package: "tengits_widgets",
    scale: 3.0,
  );
}