AutoTrack constructor

AutoTrack({
  1. AutoTrackConfig? config,
})

Implementation

factory AutoTrack({ AutoTrackConfig? config }) {
  _instance.config(config);

  MethodChannelAutoTrack().getLastCrashReport().then((report) {
    if (report != null) {
      Track.instance.customEvent('native_crash', {'report': report});
    }
    MethodChannelAutoTrack().cleanCrashReport();
  });

  return _instance;
}