di_visualizer 0.1.0 copy "di_visualizer: ^0.1.0" to clipboard
di_visualizer: ^0.1.0 copied to clipboard

outdated

di_visualizer

example/example.dart

import 'package:di_visualizer_annotation/di_visualizer_annotation.dart';

@diService
class Service1 {
  Service1(this.util, this.repository1);

  final Util util;
  final Repository1 repository1;
}

@diService
class Service2 {
  Service2(this.util, this.repository2);

  final Util util;
  final Repository2 repository2;
}

@diService
class Util {}

@diService
class RepoUtil {}

@diService
class Repository1 {
  Repository1(this.repoUtil);

  final RepoUtil repoUtil;
}

@diService
class Repository2 {
  Repository2(this.repoUtil);

  final RepoUtil repoUtil;
}