init method

dynamic init()

Implementation

init() async {
  if (to case WithLinksF source) {
    source.addLink(this);
  }
  if (target case WithLinksF target) {
    target.addLink(this);
  }

  notifyListeners();
}