copyWith method

SnackBarStyle copyWith({
  1. Color? backgroundColor,
  2. TextStyle? textStyle,
  3. Duration? duration,
  4. SnackBarBehavior? behavior,
  5. EdgeInsetsGeometry? margin,
  6. EdgeInsetsGeometry? padding,
  7. double? borderRadius,
  8. double? elevation,
  9. Color? actionTextColor,
  10. bool? enabled,
})

Implementation

SnackBarStyle copyWith({
  Color? backgroundColor,
  TextStyle? textStyle,
  Duration? duration,
  SnackBarBehavior? behavior,
  EdgeInsetsGeometry? margin,
  EdgeInsetsGeometry? padding,
  double? borderRadius,
  double? elevation,
  Color? actionTextColor,
  bool? enabled,
}) {
  return SnackBarStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    textStyle: textStyle ?? this.textStyle,
    duration: duration ?? this.duration,
    behavior: behavior ?? this.behavior,
    margin: margin ?? this.margin,
    padding: padding ?? this.padding,
    borderRadius: borderRadius ?? this.borderRadius,
    elevation: elevation ?? this.elevation,
    actionTextColor: actionTextColor ?? this.actionTextColor,
    enabled: enabled ?? this.enabled,
  );
}