copyWith method

DateStyle copyWith({
  1. TextStyle? textStyle,
  2. EdgeInsetsGeometry? contentPadding,
  3. bool? isTransparentBackground,
  4. double? width,
  5. double? height,
  6. Color? background,
  7. BoxBorder? border,
  8. double? borderRadius,
  9. Gradient? gradient,
})

Copies current DateStyle with some changes

Implementation

DateStyle copyWith({
  TextStyle? textStyle,
  EdgeInsetsGeometry? contentPadding,
  bool? isTransparentBackground,
  double? width,
  double? height,
  Color? background,
  BoxBorder? border,
  double? borderRadius,
  Gradient? gradient,
}) {
  return DateStyle(
    textStyle: textStyle ?? this.textStyle,
    contentPadding: contentPadding ?? this.contentPadding,
    isTransparentBackground:
        isTransparentBackground ?? this.isTransparentBackground,
    height: height ?? this.height,
    width: width ?? this.width,
    background: background ?? this.background,
    border: border ?? this.border,
    borderRadius: borderRadius ?? this.borderRadius,
    gradient: gradient ?? this.gradient,
  );
}