hasResource method

bool hasResource(
  1. String reference
)

Whether a resource reference exists in the package.

Implementation

bool hasResource(String reference) {
  final name = reference.toNativeUtf8();
  try {
    return _rvaHasResource(_handle, name) != 0;
  } finally {
    malloc.free(name);
  }
}