icon property
dynamic
get
icon
The icon to display. When icon is a string it is treated as Icon with the string as url property.
A string or a WoosIcon object
(WoosIcon object Specification)https://pub.dev/documentation/woosmap_flutter/latest/woosmap_flutter/WoosIcon-class.html
Implementation
dynamic get icon {
return _icon;
}
set
icon
(dynamic value)
Implementation
set icon(dynamic value) {
if (value != null && (value is! String && value is! WoosIcon)) {
throw ArgumentError('icon should be either string or WoosIcon object');
} else {
_icon = value;
}
}