Preheat the oven to 200°C (400°F).
Grease ramekins with butter and dust with flour to prevent sticking.
In a heatproof bowl, combine the dark chocolate and unsalted butter. Melt them together over a pot of simmering water, stirring until smooth.
In a separate mixing bowl, whisk together the eggs and granulated sugar until the mixture is pale and frothy.
Carefully pour the melted chocolate mixture into the egg mixture, stirring gently to combine.
Sift the all-purpose flour and a pinch of salt into the chocolate-egg mixture. Fold gently until just combined.
Divide the batter evenly among the prepared ramekins.
Bake in the preheated oven for 10-12 minutes, or until the edges are set but the center remains soft.
Remove from the oven and let cool for 1 minute. Invert each ramekin onto a plate and gently tap to release.
Dust with powdered sugar if desired and serve immediately. Enjoy your chocolate melting!