For example you have
final controller = TextEditingController();
applying lint causes such error
final controller = TextEditingController().closeWith(this);
// ^^^^
// Invalid reference to 'this' expression
Because this reference is unavailable at initialization moment. Possible fix is to add late modificator to such fields