getIDofURL method

String? getIDofURL(
  1. String? url
)

Returns the ID of url.

Implementation

String? getIDofURL(String? url) {
  if (url == null) return null;
  for (var entry in _assets.entries) {
    if (entry.value.objectURL == url) {
      return entry.key;
    }
  }
  return null;
}