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