icon property
IconData
get
icon
get IconData via mapped string set.
Implementation
IconData get icon {
try {
return XIcons.fetchIcon(uri, type: type);
} catch (e) {
// only font based uri supports icon getter. if not, throw error
throw FlutterError(
"no valid icon data found for provided uri : $uri. did you provided asset or remote uri for XIconData.icon usage?");
}
}