resolveContent static method
Get the content of the specified content:xxxx
style URI.
Implementation
static Future<Content> resolveContent(String uri) async {
final cr = await resolve(uri);
try {
return Content(
data: Uint8List.fromList(cr.buffer),
mimeType: cr.mimeType,
fileName: cr.fileName,
);
} finally {
cr.dispose();
}
}