copyWith method

UserProfileConfig copyWith({
  1. UserProfilePageType? pageType,
  2. bool? hideCloseIcon,
  3. int? width,
  4. int? height,
  5. String? scene,
  6. Map<String, dynamic>? extra,
})

Implementation

UserProfileConfig copyWith({
  UserProfilePageType? pageType,
  bool? hideCloseIcon,
  int? width,
  int? height,
  String? scene,
  Map<String, dynamic>? extra,
}) {
  return UserProfileConfig(
    pageType: pageType ?? this.pageType,
    hideCloseIcon: hideCloseIcon ?? this.hideCloseIcon,
    width: width ?? this.width,
    height: height ?? this.height,
    scene: scene ?? this.scene,
    extra: extra ?? this.extra,
  );
}