Closed solid-yuriiprykhodko closed 9 months ago
https://github.com/solid-software/solid_lints/blob/release-v0.1.0/lib/lints/avoid_returning_widgets/avoid_returning_widgets_rule.dart#L30
We should narrow down the rule to allow Widget build() method only for Widget subclasses.
Widget build()
cc @n-bernat I think we overdid it with the refactoring :)
Closed, but created a follow-up issue to improve the behavior https://github.com/solid-software/solid_lints/issues/68
https://github.com/solid-software/solid_lints/blob/release-v0.1.0/lib/lints/avoid_returning_widgets/avoid_returning_widgets_rule.dart#L30
We should narrow down the rule to allow
Widget build()
method only for Widget subclasses.cc @n-bernat I think we overdid it with the refactoring :)