operator | method

  1. @override
dynamic operator |(
  1. BaseBLoCWidget<T> next
)
override

Implementation

@override
operator |(BaseBLoCWidget<T> next) {
  if (next is! CaseBLoCWidget<T>) {
    throw ArgumentError('BLoC Widget in \$when block need to be followed by instance of CaseBLoCWidget, '
        'but got ${next.runtimeType}');
  }
  cases.add(next);
  return this;
}