copyWith method

FlutterTagStyle copyWith({
  1. FlutterTagShape? shape,
  2. SharpBorderRadius? borderRadius,
  3. Color? tagColor,
  4. BorderSide? borderSide,
  5. double? elevation,
  6. FlutterTagGradient? tagGradient,
  7. FlutterTagGradient? borderGradient,
  8. EdgeInsetsGeometry? padding,
})

Implementation

FlutterTagStyle copyWith(
    {FlutterTagShape? shape,
    SharpBorderRadius? borderRadius,
    Color? tagColor,
    BorderSide? borderSide,
    double? elevation,
    FlutterTagGradient? tagGradient,
    FlutterTagGradient? borderGradient,
    EdgeInsetsGeometry? padding}) {
  return FlutterTagStyle(
    shape: shape ?? this.shape,
    borderRadius: borderRadius ?? this.borderRadius,
    tagColor: tagColor ?? this.tagColor,
    borderSide: borderSide ?? this.borderSide,
    elevation: elevation ?? this.elevation,
    tagGradient: tagGradient ?? this.tagGradient,
    borderGradient: borderGradient ?? this.borderGradient,
    padding: padding ?? this.padding,
  );
}