watchObjectLeak method

dynamic watchObjectLeak(
  1. Object obj,
  2. String name
)

add obj into the group

Implementation

watchObjectLeak(Object obj, String name) {
  assert(() {
    LeakDetector().addWatchObject(obj, name);
    return true;
  }());
}