Line data Source code
1 : import 'package:combine/combine.dart'; 2 : 3 : /// [IsolateContext] holds an argument, passed while you spawn `Isolate`, 4 : /// [IsolateMessenger] which is used to communicate with original `Isolate` 5 : /// and [CombineIsolate] which is represents current `Isolate`. 6 : class IsolateContext { 7 2 : const IsolateContext({ 8 : required this.argument, 9 : required this.messenger, 10 : required this.isolate, 11 : }); 12 : 13 : /// Argument, passed while you spawn `Isolate`. 14 : final Object? argument; 15 : 16 : /// Messenger which is used to communicate with original `Isolate`. 17 : final IsolateMessenger messenger; 18 : 19 : final CombineIsolate isolate; 20 : }