maskAadhaar method
Method to mask Aadhaar, to be implemented by platform-specific classes.
Implementation
@override
Future<String?> maskAadhaar(String imagePath) async {
try {
// Call the native method and wait for the result
final String? maskedImagePath = await methodChannel
.invokeMethod<String>('maskAadhaar', {'imagePath': imagePath});
return maskedImagePath;
} on PlatformException catch (e) {
// Handle platform-specific errors
if (kDebugMode) {
print('Error in MethodChannelSplicerai: ${e.message}');
}
return null;
}
}