Detector constructor

Detector({
  1. required Widget child,
  2. required String areaID,
  3. bool cumulative = false,
})

Creates a widget detector observing the child widget tree

A non empty, unique areaID has to be provided. By default the detector is not cumulative.

Implementation

Detector({
  required Widget child,
  required String areaID,
  bool cumulative = false,
}) : this._(
        child: child,
        areaID: areaID,
        cumulative: cumulative,
      );