Pulse constructor
Pulse(
- String clientUid,
- String clientSecret, {
- String pulseHost = PulseUtils.DEFAULT_HOST,
- bool testing = false,
- 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);
}