deleteContact method

  1. @override
Future<bool> deleteContact({
  1. required String contactId,
})
override

/ 4.

Implementation

@override
// Deletes a contact by ID
Future<bool> deleteContact({required String contactId}) async {
  final bool success = await methodChannel.invokeMethod('deleteContact', {
    'contactId': contactId,
  });
  return success;
}