getAssemblyID method
Utility function to get the assembly ID either from the one supplied or from a URL
Implementation
String getAssemblyID(String assemblyID, String assemblyURL) {
String _assemblyID = assemblyID;
if (assemblyID.isEmpty && assemblyURL.isEmpty) {
throw Exception('Either assemblyID or assemblyURL cannot be empty.');
}
if (assemblyURL.isNotEmpty) {
// Retrieves the Assembly ID from
_assemblyID = assemblyURL.substring(assemblyURL.lastIndexOf('/') + 1);
}
return _assemblyID;
}