processImage method
Implementation
Future<bool> processImage(String filePath,
EdgeDetectionResult edgeDetectionResult, double rot) async {
final port = ReceivePort();
_spawnIsolate<ProcessImageInput>(
processImageIsolate,
ProcessImageInput(
inputPath: filePath,
edgeDetectionResult: edgeDetectionResult,
rotation: rot,
sendPort: port.sendPort),
port);
return await _subscribeToPort<bool>(port);
}