UpdateRequest.profile constructor

const UpdateRequest.profile({
  1. required String idToken,
  2. String? displayName,
  3. Uri? photoUrl,
  4. @Default(<DeleteAttribute>[]) List<DeleteAttribute> deleteAttribute,
  5. @Default(false) bool returnSecureToken,
})

Implementation

const factory UpdateRequest.profile({
  /// A Firebase Auth ID token for the user.
  required String idToken,

  /// User's new display name.
  String? displayName,

  /// User's new photo url.
  Uri? photoUrl,

  /// List of attributes to delete, [DeleteAttribute.DISPLAY_NAME] or
  /// [DeleteAttribute.PHOTO_URL]. This will nullify these values.
  @Default(<DeleteAttribute>[]) List<DeleteAttribute> deleteAttribute,

  /// Whether or not to return an ID and refresh token.
  @Default(false) bool returnSecureToken,
}) = ProfileUpdateRequest;