ngAfterChanges method
Implementation
@override
ngAfterChanges() {
iconRef.icon = toggle ? toggledIcon : icon;
_showToggled = toggle && _hasValue(toggledIcon);
_showBasic = !toggle && _hasValue(icon);
_hideIcon =
(toggle && !_hasValue(toggledIcon)) || (!toggle && !_hasValue(icon));
// Ensure the icon displayed by the underlying material-icon is updated.
_cdRef.markForCheck();
}