0

When I am doing this:

enter image description here

I am getting an error that says: 'The prefix 'value' can't be used here because it is shadowed by a local declaration.'

I have referred the following: Why can't I use context.read in build(), but I can use Provider.of with listen: false?

I did not understand much. Can someone please help me in simple terms what am I doing wrong. Thank you.

ar3
  • 369
  • 1
  • 4
  • 18

1 Answers1

0

The error is just because no space in elseif.

But not sure what does the error shadowed by local declaration mean. I was not able to find any official references.

ar3
  • 369
  • 1
  • 4
  • 18