updateUserProfilePictureCustomRequestMapper property

FutureOr<MultipartRequest> Function(String imagePath, MultipartRequest baseRequest, AuthenticationData data)? updateUserProfilePictureCustomRequestMapper
final

Provides a way to customize the MultipartRequest sent to the updateUserProfilePictureApiEndpoint call.

The function receives the imagePath of the selected image, the baseRequest which is a MultipartRequest that was initially crafted with the HTTP method and API endpoint but without the file yet, and the AuthenticationData of the current user.

It should return a FutureOr that resolves to a MultipartRequest.

Implementation

final FutureOr<MultipartRequest> Function(
        String imagePath, MultipartRequest baseRequest, AuthenticationData data)?
    updateUserProfilePictureCustomRequestMapper;