If your Flutter app has jank due to a heavy computation, use Isolate.run() to move that computation to a new isolate. Watch → https://goo.gle/3JuU7ar #TechniqueOfTheWeek
Casually promoting a usage of calculate with runtime cache if someone needs it: https://github.com/bgoncharuck/cached_calc Have a nice day everyone 🙂
Chief Executive Officer at PoachMe
16hConsider using compute() instead, on native platforms is equivalent to Isolate.run() while on web it runs on the main event loop. https://api.flutter.dev/flutter/foundation/compute.html