Closed buttonsrtoys closed 3 years ago
According to the specification, factories are constructors, they just aren't generative constructors. I believe that the lint is working as intended.
Please file linter things at the linter depot, pedantic
is just about which lints to enable :)
class Sample { Sample(this.answer); int answer; factory Sample.fortyTwo() => Sample(42); // <- "Sort constructor declarations before other members" }