icon property

  1. @Input()
set icon (dynamic value)

The Icon model (lib/model/ui/icon.dart) or icon identifier (String) this component should display.

See https://www.google.com/design/icons/ for available icons. If the icon name contains spaces, replace them with underscores.

Implementation

@Input()
set icon(dynamic value) {
  _icon = value;
  if (_flippedIcons.contains(iconName)) {
    _element.setAttribute('flip', '');
  }
}