copyWith method

ActionSheetConfig copyWith({
  1. double? topRadius,
  2. BaseTextStyle? titleStyle,
  3. BaseTextStyle? itemTitleStyle,
  4. BaseTextStyle? itemTitleStyleLink,
  5. BaseTextStyle? itemTitleStyleAlert,
  6. BaseTextStyle? itemDescStyle,
  7. BaseTextStyle? itemDescStyleLink,
  8. BaseTextStyle? itemDescStyleAlert,
  9. BaseTextStyle? cancelStyle,
  10. EdgeInsets? contentPadding,
  11. EdgeInsets? titlePadding,
})

Implementation

ActionSheetConfig copyWith({
  double? topRadius,
  BaseTextStyle? titleStyle,
  BaseTextStyle? itemTitleStyle,
  BaseTextStyle? itemTitleStyleLink,
  BaseTextStyle? itemTitleStyleAlert,
  BaseTextStyle? itemDescStyle,
  BaseTextStyle? itemDescStyleLink,
  BaseTextStyle? itemDescStyleAlert,
  BaseTextStyle? cancelStyle,
  EdgeInsets? contentPadding,
  EdgeInsets? titlePadding,
}) {
  return ActionSheetConfig(
    titleStyle: titleStyle ?? _titleStyle,
    itemTitleStyle: itemTitleStyle ?? _itemTitleStyle,
    itemTitleStyleLink: itemTitleStyleLink ?? _itemTitleStyleLink,
    itemTitleStyleAlert: itemTitleStyleAlert ?? _itemTitleStyleAlert,
    itemDescStyle: itemDescStyle ?? _itemDescStyle,
    itemDescStyleLink: itemDescStyleLink ?? _itemDescStyleLink,
    itemDescStyleAlert: itemDescStyleAlert ?? _itemDescStyleAlert,
    cancelStyle: cancelStyle ?? _cancelStyle,
    topRadius: topRadius ?? _topRadius,
    contentPadding: contentPadding ?? _contentPadding,
    titlePadding: titlePadding ?? _titlePadding,
  );
}