detectEdges method
Detects edges of given imageFile
Returns Edges when succeeded or null on failure.
Implementation
@override
Future<Edges?> detectEdges(File imageFile) async {
final filePath = imageFile.path;
final result = await methodChannel.invokeMethod<Map<Object?, Object?>>(
'detectEdges',
{'filePath': filePath},
);
if (result == null) return null;
final edges = Edges.fromPlatformResult(result);
return edges;
}