Future<int> getSize() async { int size = 0; try { await getMetadata().then((value) => size = value.size!); } catch (e) { size = 0; } return size; }