showCreator method

Future<String?> showCreator({
  1. Contact? contact,
})

Shows the native contact creator dialog.

contact - Optional contact data to pre-fill the form.

Returns the ID of the newly created contact if created, or null if the user cancelled.

Implementation

Future<String?> showCreator({Contact? contact}) => _invoke<String>(
  'native.showCreator',
  {if (contact != null) 'contact': contact.toJson()},
);