Why we use positioned in Flutter?

Positioned is a widget that comes built-in with flutter SDK. Postioned does exactly what it sounds like, which is it arbitrarily positioned widgets on top of each other. It is usually used to position child widgets in Stack widget or similar . It only works for Stateless and Stateful widgets.

Read more

Is function inside function bad?

no, there’s nothing wrong with that at all, and in js, it’s usually a good thing . the inside functions may not be a pure function, if they rely on closure variables. If you don’t need a closure or don’t need to worry about polluting your namespace, write it as a sibling.

Read more

Can you use functions inside of functions?

A nested function is a function that is completely contained within a parent function. Any function in a program file can include a nested function . The primary difference between nested functions and other types of functions is that they can access and modify variables that are defined in their parent functions.

Read more