getMetadata method
- dynamic type
Gets the metadata attribute of the book. Returns an emptry string, if the core is not initialised.
Implementation
String getMetadata(Metadata type) {
Pointer<BufferString> str = (getMetadataNative?.call(_sdk, type.index))!;
String result = str.ref.toString();
if (str != nullptr) {
freeBufferString(str);
return result;
}
return '';
}