fromAsset static method

bool fromAsset(
  1. String path
)

Returns true if the given path belongs to an asset image path.

Checks whether path contains the predefined _imagePath.

Implementation

static bool fromAsset(String path) {
  return path.contains(_imagePath);
}