operator | method

  1. @override
dynamic operator |(
  1. BaseBLoCWidget next
)
override

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;
}