isolated_object 0.1.0
isolated_object: ^0.1.0 copied to clipboard
Wraps an object in a dedicated isolate and forwards method calls to it, so timer- or event-loop-driven work (e.g. progress spinners) keeps running even when the calling isolate's event loop is blocked [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add isolated_objectWith Flutter:
$ flutter pub add isolated_objectThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
isolated_object: ^0.1.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:isolated_object/isolated_object.dart';