sendTestNotification method

Future<List<NotificationResult>> sendTestNotification({
  1. Map<String, String>? env,
  2. bool dryRun = false,
})

Sends a test notification to all configured providers.

Implementation

Future<List<NotificationResult>> sendTestNotification({
  Map<String, String>? env,
  bool dryRun = false,
}) async {
  final testEvent = ReleaseEvent(
    eventType: ReleaseEventType.releaseSucceeded,
    version: '1.0.0',
    buildNumber: '1',
    releaseMode: 'test',
    platforms: ['android'],
    deploymentStatus: 'Test Event',
  );

  return dispatch(testEvent, env: env, dryRun: dryRun);
}