"isn't a function" error in flutter when trying to call a constructor

Viewed 51

so I have a issue with calling a constructor

here LeftBar is constructor in lefr_bar.dart file

enter image description here

and i am calling it in home.dart file

enter image description here

but it is showing error as LeftBar isn't a function. can some tell me what the problem is?

1 Answers

Check if you've imported correctly.

Related