setContactInfo method

Future<void> setContactInfo({
  1. String? name,
  2. String? email,
  3. String? phone,
  4. String? brief,
})

Assigns contact info to user, to reach him easier in future.

Implementation

Future<void> setContactInfo({String? name, String? email, String? phone, String? brief}) async {
  await _channel.invokeMethod<void>('session:setContactInfo', {
    'name': name ?? '',
    'email': email ?? '',
    'phone': phone ?? '',
    'brief': brief ?? ''
  });
}