stateless widget is a class in flutter code example
Example: stateless widget flutter
class GreenFrog extends StatelessWidget {
const GreenFrog({ Key key }) : super(key: key);
Widget build(BuildContext context) {
return Container(color: const Color(0xFF2DBD3A));
}
}