import 'package:flutter/material.dart';
class A extends StatelessWidget {
const A(this.widget, {super.key});
final Widget widget;
@override
Widget build(BuildContext context) => Container();
}
class B extends A {
const B({Key? key}) : super(const Text(''), key: key);
}
There is not lint currently with the constructor in B.
But the constructor can be changed to be
const B({super.key}) : super(const Text(''));
Currently the lint handles the case of:
MyWidget({Key? key}) : super(text: '', key: key);
There is not lint currently with the constructor in
B.But the constructor can be changed to be
Currently the lint handles the case of: