copyWith method
ActionSheetConfig
copyWith({
- double? topRadius,
- BaseTextStyle? titleStyle,
- BaseTextStyle? itemTitleStyle,
- BaseTextStyle? itemTitleStyleLink,
- BaseTextStyle? itemTitleStyleAlert,
- BaseTextStyle? itemDescStyle,
- BaseTextStyle? itemDescStyleLink,
- BaseTextStyle? itemDescStyleAlert,
- BaseTextStyle? cancelStyle,
- EdgeInsets? contentPadding,
- 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,
);
}