UserProfileConfig constructor

UserProfileConfig({
  1. int userImageSize = 256,
  2. Duration userInfoCacheLifetime = const Duration(minutes: 1),
  3. UserImageGenerator userImageGenerator = defaultUserImageGenerator,
  4. UserProfileImageType userImageFormat = UserProfileImageType.jpg,
  5. int userImageQuality = 70,
  6. BeforeUserProfileCreatedHandler? onBeforeUserProfileCreated,
  7. AfterUserProfileCreatedHandler? onAfterUserProfileCreated,
  8. BeforeUserProfileUpdatedHandler? onBeforeUserProfileUpdated,
  9. AfterUserProfileUpdatedHandler? onAfterUserProfileUpdated,
  10. FutureOr<Uint8List> imageFetchFunc(
    1. Uri url
    ) = _defaultImageFetch,
})

Create a new user profile configuration.

Implementation

UserProfileConfig({
  this.userImageSize = 256,
  this.userInfoCacheLifetime = const Duration(minutes: 1),
  this.userImageGenerator = defaultUserImageGenerator,
  this.userImageFormat = UserProfileImageType.jpg,
  this.userImageQuality = 70,
  this.onBeforeUserProfileCreated,
  this.onAfterUserProfileCreated,
  this.onBeforeUserProfileUpdated,
  this.onAfterUserProfileUpdated,
  this.imageFetchFunc = _defaultImageFetch,
});