Gimp.Resource.prototype.is_valid

function is_valid(): Boolean {
    // Gjs wrapper for gimp_resource_is_valid()
}
  

Returns TRUE if the resource is valid.

This procedure checks if the given resource is valid and refers to an existing resource.

Since 3.0

Returns

Whether the resource is valid.