0

I'm new to Dart/Flutter and working on correcting some linting errors I'm getting in my code. The error library_private_types_in_public_api is flagged by the flowing line of code:

_ActiveEstimateListScreenState createState() =>
      _ActiveEstimateListScreenState(estimates: estimates);

After reviewing the FLutter Github I see that this should be correct to:

<State>ActiveEstimateListScreen createState() =>
      _ActiveEstimateListScreenState(estimates: estimates);

But I am still getting the following error:

enter image description here

And here is the surrounding code for reference.

enter image description here

Any help is appreciated!

jamesdlin
  • 81,374
  • 13
  • 159
  • 204
  • Is this correct `ActiveEstimateListScreen createState() => _ActiveEstimateListScreenState(estimates: estimates)`? It should be like this `State create() => _ActiveEstimateListScreenState(estimates: estimates)` – Chance Oct 27 '22 at 01:46
  • Please provide enough code so others can better understand or reproduce the problem. – Community Oct 27 '22 at 16:47

0 Answers0