initialize static method

Resend initialize({
  1. required String apiKey,
})

Initialize the Resend instance with the API Key

Implementation

static Resend initialize({required String apiKey}) {
  // Ensure the instance is not already initialized
  assert(!_instance._initialized, 'This instance is already initialized.');
  // Initialize the instance with the provided access token
  _instance._init(apiKey: apiKey);

  return _instance;
}