image property
ImageProvider<Object> ?
get
image
Implementation
ImageProvider? get image {
for (CSSFunctionalNotation method in functions) {
if (method.name == 'url') {
String url = method.args.isNotEmpty ? method.args[0] : '';
if (url.isEmpty) {
continue;
}
// Method may contain quotation mark, like ['"assets/foo.png"']
url = _removeQuotationMark(url);
Uri uri = Uri.parse(url);
if (url.isNotEmpty) {
uri = controller.uriParser!.resolve(Uri.parse(controller.url), uri);
return getImageProvider(uri, contextId: controller.view.contextId);
}
}
}
}