UserProfileConfig constructor
UserProfileConfig({
- int userImageSize = 256,
- Duration userInfoCacheLifetime = const Duration(minutes: 1),
- UserImageGenerator userImageGenerator = defaultUserImageGenerator,
- UserProfileImageType userImageFormat = UserProfileImageType.jpg,
- int userImageQuality = 70,
- BeforeUserProfileCreatedHandler? onBeforeUserProfileCreated,
- AfterUserProfileCreatedHandler? onAfterUserProfileCreated,
- BeforeUserProfileUpdatedHandler? onBeforeUserProfileUpdated,
- AfterUserProfileUpdatedHandler? onAfterUserProfileUpdated,
- FutureOr<
Uint8List> imageFetchFunc(- Uri url
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,
});