rollbar_dart 1.3.1 copy "rollbar_dart: ^1.3.1" to clipboard
rollbar_dart: ^1.3.1 copied to clipboard

Connect your Dart applications to Rollbar for error reporting.

rollbar-dart #

Dart notifier for reporting exceptions, errors and log messages to Rollbar.

This is a Dart-only implementation providing core notifier features. If you're building a Flutter application you should use rollbar-flutter instead, which adds Flutter-specific features to the core functionality of this library.

rollbar-dart is currently in Beta. We are looking for beta-testers and feedback #

Usage #

A simple usage example:

import 'package:rollbar_dart/rollbar.dart';

void main() async {
    final config = Config(
    accessToken: 'YOUR-ROLLBAR-ACCESSTOKEN',
    package: 'rollbar_dart_example',
  );

  await Rollbar.run(config);

  try {
    throw ArgumentError('An error occurred in the dart example app.');
  } catch (error, stackTrace) {
    await Rollbar.error(error, stackTrace);
  }
}

See the example directory for a complete example.

Documentation #

For complete usage instructions and configuration reference, see our rollbar-dart SDK docs.

Release History & Changelog #

See our Releases page for a list of all releases and changes.

Help / Support #

If you run into any issues, please email us at support@rollbar.com.

For bug reports, please open an issue on GitHub.

License #

rollbar-dart is free software released under the MIT License. See LICENSE for details.