copyWith method

LMChatBottomSheetStyle copyWith({
  1. Color? backgroundColor,
  2. BorderRadiusGeometry? borderRadius,
  3. double? height,
  4. double? elevation,
  5. EdgeInsets? padding,
  6. EdgeInsets? margin,
  7. List<BoxShadow>? boxShadow,
  8. Widget? dragBar,
  9. Color? dragBarColor,
  10. LMChatTextStyle? titleStyle,
})

Implementation

LMChatBottomSheetStyle copyWith({
  Color? backgroundColor,
  BorderRadiusGeometry? borderRadius,
  double? height,
  double? elevation,
  EdgeInsets? padding,
  EdgeInsets? margin,
  List<BoxShadow>? boxShadow,
  Widget? dragBar,
  Color? dragBarColor,
  LMChatTextStyle? titleStyle,
}) {
  return LMChatBottomSheetStyle(
    titleStyle: titleStyle ?? this.titleStyle,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderRadius: borderRadius ?? this.borderRadius,
    height: height ?? this.height,
    elevation: elevation ?? this.elevation,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    boxShadow: boxShadow ?? this.boxShadow,
    dragBar: dragBar ?? this.dragBar,
    dragBarColor: dragBarColor ?? this.dragBarColor,
  );
}