Home > database >  Actually I'm new to flutter , Can anyone of you help me withis calling of this label function i
Actually I'm new to flutter , Can anyone of you help me withis calling of this label function i

Time:01-12

I wannna use this label function under that branch

CodePudding user response:

the label is widget class property, in order to access on state call, you need to use

widget.variableName

For your case

widget.label

CodePudding user response:

if you are accessing something in the state and that's belong to the class you have to use widget keyword

widget.label;

CodePudding user response:

Try this,

widget.label

You have to access label this way.

Because, label belongs to the class and you are accessing it in the State.

  • Related