isolate_generator 0.0.5+2 isolate_generator: ^0.0.5+2 copied to clipboard
flutter and dart code generator package for generating Isolate code for your classes.
import 'dart:ui';
import 'package:isolate_generator_annotation/isolate_generator_annotation.dart';
part 'image_isolate.g.dart';
@GenerateIsolate()
class MyClass {
int sum(int a, int b) {
return a + b;
}
Stream<int> streamRang({required int count}) async* {
for (var i = 0; i < count; i++) {
yield i;
}
}
}