Pulse constructor

Pulse(
  1. String clientUid,
  2. String clientSecret, {
  3. String pulseHost = PulseUtils.DEFAULT_HOST,
  4. bool testing = false,
  5. PulseTheme? theme,
})

Implementation

Pulse(this.clientUid, this.clientSecret,
    {this.pulseHost = PulseUtils.DEFAULT_HOST, bool testing=false, PulseTheme? theme}) {
  pulseHost = pulseHost;
  this.theme = theme ?? PulseTheme.defaultTheme;
  config = Config(clientUid:clientUid, clientSecret:clientSecret, pulseHost:pulseHost, testing:testing);

  // add the reports
  log.i('Adding reports ${defaultReports.length}');
  addReport(MainReport(theme: this.theme, contextProvider: getContext));
  addReport(SessionReport());
  addReport(DeviceReport());
  addReport(StackReport());
  addReport(ScreenReport());

  // register the shake listeners
  log.i('Initialising shake triggers');
  ShakeGesture.registerCallback(onShake: trigger);
}