exists abstract method

bool exists()

Checks whether the underlying resource exists.

Returns true if the asset is available, otherwise false.

Example

if (resource.exists()) {
  print("Asset is available!");
}

Implementation

bool exists();