runService function

Binding runService(
  1. Component component
)

Implementation

Binding runService(Component component) {
  var binding = component.createBinding();
  binding._build();

  binding.visitChildren(TreeVisitor((visitor) {
    if (visitor.currentValue is ServiceWrapperBinding) {
      (visitor.currentValue as ServiceWrapperBinding).component.service._init();
    }
  }));

  // var runner = CommandRunner("style", "style inline command-line app");
  // runner.addCommand(SetProperty());
  //
  // stdin.listen((event) {
  //   runner.run(utf8.decode(event).split(" "));
  // });

  return binding;
}