bool _anyDelegatesShouldReload(Localizations old) { if (this.widget.delegates.Count != old.delegates.Count) { return(true); } List <LocalizationsDelegate> delegates = this.widget.delegates.ToList(); List <LocalizationsDelegate> oldDelegates = old.delegates.ToList(); for (int i = 0; i < delegates.Count; i += 1) { LocalizationsDelegate del = delegates[i]; LocalizationsDelegate oldDelegate = oldDelegates[i]; if (del.GetType() != oldDelegate.GetType() || del.shouldReload(oldDelegate)) { return(true); } } return(false); }
public override bool shouldReload(LocalizationsDelegate old) { return(false); }