setUserData method

Future<void> setUserData({
  1. String? email,
  2. String? firstName,
  3. String? lastName,
  4. String? phone,
  5. String? dateOfBirth,
  6. String? gender,
  7. String? city,
  8. String? state,
  9. String? zip,
  10. String? country,
})

Sets user data to associate with all app events. All user data are hashed and used to match Facebook user from this instance of an application. The user data will be persisted between application instances.

Implementation

Future<void> setUserData({
  String? email,
  String? firstName,
  String? lastName,
  String? phone,
  String? dateOfBirth,
  String? gender,
  String? city,
  String? state,
  String? zip,
  String? country,
}) {
  final args = <String, dynamic>{
    'email': email,
    'firstName': firstName,
    'lastName': lastName,
    'phone': phone,
    'dateOfBirth': dateOfBirth,
    'gender': gender,
    'city': city,
    'state': state,
    'zip': zip,
    'country': country,
  };

  return _channel.invokeMethod<void>('setUserData', args);
}