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