Config constructor
const
Config({
- required String accessToken,
- String endpoint = 'https://api.rollbar.com/api/1/item/',
- String environment = Environment.mode,
- String framework = 'dart',
- String codeVersion = 'main',
- String? package,
- String persistencePath = './',
- Duration persistenceLifetime = const Duration(days: 1),
- bool handleUncaughtErrors = true,
- bool includePlatformLogs = false,
- FutureOr<
Sandbox> sandbox() = IsolatedSandbox.spawn, - Notifier notifier() = CoreNotifier.new,
- Marshaller marshaller() = DataMarshaller.new,
- Transformer transformer() = NoopTransformer.new,
- Sender sender() = PersistentHttpSender.new,
- Client httpClient() = http.Client.new,
Implementation
const Config({
required this.accessToken,
this.endpoint = 'https://api.rollbar.com/api/1/item/',
this.environment = Environment.mode,
this.framework = 'dart',
this.codeVersion = 'main',
this.package,
this.persistencePath = './',
this.persistenceLifetime = const Duration(days: 1),
this.handleUncaughtErrors = true,
this.includePlatformLogs = false,
this.sandbox = IsolatedSandbox.spawn,
this.notifier = CoreNotifier.new,
this.marshaller = DataMarshaller.new,
this.transformer = NoopTransformer.new,
this.sender = PersistentHttpSender.new,
this.httpClient = http.Client.new,
});