Is the flutter functions (methods?) parameters are "by value" of "by reference"? Does different variable types have different approach ? for example(s)
1) BlocProvider.of<CounterCubit>(context).dec();
2) const MyApp({Key? key}) : super(key: key);
3) CounterState(counterValue: state.counterValue+1)
4) CounterState(counterClass: ClassA)
Another sample in following code:
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
...
where the context variable value is created, does inside the build function and only after the returning from the build function the context has value, or somewhere else before...? Does the value of context variable before entering the build function is defined? where ?