isolate_generator 0.0.5 isolate_generator: ^0.0.5 copied to clipboard
A flutter package for Isolate code generation.
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;
}
}
}