Flutter SDK

Documentation Coming Soon

This documentation page is being written. Check back soon or contact us for help.

Installation

flutter pub add stackwatch_flutter

Configuration

import 'package:stackwatch_flutter/stackwatch_flutter.dart';

void main() async {
  await StackWatch.init(
    apiKey: 'your-api-key-here',
    environment: 'production',
  );

  runApp(MyApp());
}

Usage

// Report an exception
await StackWatch.captureException(exception, stackTrace: stackTrace);

// Report a message
await StackWatch.captureMessage('User logged in', level: 'info');

// Set user context
StackWatch.setUser(userId: '123', email: 'user@example.com');