Config class

Configuration for the Rollbar notifier.

Annotations
  • @sealed
  • @immutable

Constructors

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(Config) = IsolatedSandbox.spawn, Notifier notifier(Config) = CoreNotifier.new, Marshaller marshaller(Config) = DataMarshaller.new, Transformer transformer(Config) = NoopTransformer.new, Sender sender(Config) = PersistentHttpSender.new, Client httpClient() = http.Client.new})
const
Config.fromMap(JsonMap map)
factory

Properties

accessToken String
final
codeVersion String
final
endpoint String
final
environment String
final
framework String
final
handleUncaughtErrors bool
final
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client Function()
final
includePlatformLogs bool
final
marshaller Marshaller Function(Config)
final
notifier Notifier Function(Config)
final
package String?
final
persistenceLifetime Duration
final
persistencePath String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sandbox FutureOr<Sandbox> Function(Config)
final
sender Sender Function(Config)
final
transformer Transformer Function(Config)
final

Methods

copyWith({String? accessToken, String? endpoint, String? environment, String? framework, String? codeVersion, String? package, String? persistencePath, Duration? persistenceLifetime, bool? handleUncaughtErrors, bool? includePlatformLogs, FutureOr<Sandbox> sandbox(Config)?, Notifier notifier(Config)?, Marshaller marshaller(Config)?, Transformer transformer(Config)?, Sender sender(Config)?}) Config
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → JsonMap
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited