I understand the difference between eager and lazy singletons: the eager is instantiated when it first loaded, but the lazy is instantiated when it is first used (method called).
Now, to fully understand the difference we should know when loading happens.
According to this article, it happens in the Starting the Dart VM phase. Just before Creating and running a Dart Isolate phase when the main
method is called.
The question is: when we call singleton from main
void main() async{
await MyService().execute();
runApp( MainApp());
}
there is practically no difference between eager and lazy. Am I right?