In flutter_lints the use_key_in_widget_constructors lint requres providing a key when creating public widgets.
It's a good practice to expose the ability to provide a key when creating public widgets.
class MyPublicWidget extends StatelessWidget {
MyPublicWidget({Key? key}) : super(key: key);
}
What is actualy the purpose of this lint rule i.e. what it gives?