findChildService<T extends ServerBinding> method

  1. @override
T? findChildService<T extends ServerBinding>()
override

Implementation

@override
T? findChildService<T extends ServerBinding>() {
  var visiting = visitChildren(TreeVisitor<Binding>((visitor) {
    if (visitor.currentValue is T) {
      visitor.stop();
    }
  }));

  return visiting.result as T;
}