The provider is built using widgets. You can use all the objects in the provider as if they were just part of Flutter with the new widget subclasses it creates. This also means that the provider is not cross-platform. The provider is the simplest way to handle state management. Basically, it works on the concept of PUB-SUB i.e., there is one provider and several subscribers. Q#34 ISOLATE AND EVENT LOOP GET START ------------------------- ISOLATE ----------------------- An isolate is what all Dart code runs in. It’s like a little space on the machine with its own, private chunk of memory and a single thread running an event loop. An isolate has its own memory and a single thread of execution that runs an event loop. In a lot of other languages like C++, you can have multiple threads sharing the same memory and running whatever code you want. In Dart, though, each thread is in its own isolate with its own memory, and the thread just processes events. Many Dart apps run all their code in a single isolate, but you can have more than one if you need it. If you have a computation to perform that’s so enormous it could cause you to drop frames if it were run in the main isolate, then you can use Isolate.spawn() or Flutter’s compute() function. Both of those functions create a separate
isolate to do the number crunching, leaving your main isolate free to — say— rebuild and render the widget tree. import 'dart:isolate'; void sayhii(var msg){ print('execution from sayhii ... the message is :${msg}'); } void main(){ Isolate.spawn(sayhii,'Hello!!');