PrivateKey.generateSync()

Source

factory PrivateKey.generateSync() =>
  _CRYPTO_PROVIDER.generateSync();