operator | method
Implementation
@override
operator |(BaseBLoCWidget next) {
MatchBLoCWidget<dynamic> lastGuardBuilder = this;
var limit = 100;
while (lastGuardBuilder is MatchBLoCWidget) {
if (lastGuardBuilder.next is! MatchBLoCWidget) {
break;
}
lastGuardBuilder = lastGuardBuilder.next as MatchBLoCWidget;
}
if (next is MatchBLoCWidget) {
next.prev = lastGuardBuilder;
}
lastGuardBuilder.next = next;
return this;
}