You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For convenience sake, I'd like to suggest adding a simple non-throwable method getChildOrNull to BaseBoxyDelegate. With that it wouldn't be necessary to always write code like this:
BoxyChild? child =null;
if (hasChild(#child)) {
child =getChild(#child);
}
Implementation is simple and would go as follows:
/// Gets the child handle with the specified [id] or returns null if there/// is no child with given [id].T?getChildOrNull<TextendsChildHandleType>(Object id) {
if (hasChild(id)) {
returngetChild(id);
}
returnnull;
}
The text was updated successfully, but these errors were encountered:
For convenience sake, I'd like to suggest adding a simple non-throwable method
getChildOrNull
toBaseBoxyDelegate
. With that it wouldn't be necessary to always write code like this:Implementation is simple and would go as follows:
The text was updated successfully, but these errors were encountered: