selectContact method

  1. @override
Future<Contact?> selectContact()
override

Implementation

@override
Future<Contact?> selectContact() async {
  final Map<dynamic, dynamic>? result = await methodChannel
      .invokeMethod<Map<dynamic, dynamic>?>('selectContact');
  if (result == null) {
    return null;
  }
  return Contact.fromMap(result);
}