send method

Future<String> send(
  1. Message message, {
  2. bool? dryRun,
})

Sends the given message via FCM.

  • message - The message payload.
  • dryRun - Whether to send the message in the dry-run (validation only) mode.

Returns a unique message ID string after the message has been successfully handed off to the FCM service for delivery.

Implementation

Future<String> send(Message message, {bool? dryRun}) {
  return _requestHandler.send(message, dryRun: dryRun);
}