copyWith method

TwStyle copyWith({
  1. int? p,
  2. int? px,
  3. int? py,
  4. int? pl,
  5. int? pr,
  6. int? pb,
  7. int? pt,
  8. int? m,
  9. int? mx,
  10. int? my,
  11. int? ml,
  12. int? mr,
  13. int? mb,
  14. int? mt,
  15. String? color,
  16. String? rounded,
  17. String? roundedT,
  18. String? roundedR,
  19. String? roundedB,
  20. String? roundedL,
  21. String? roundedTl,
  22. String? roundedTr,
  23. String? roundedBl,
  24. String? roundedBr,
})

Create a copy of this style with updated values

Implementation

TwStyle copyWith({
  int? p,
  int? px,
  int? py,
  int? pl,
  int? pr,
  int? pb,
  int? pt,
  int? m,
  int? mx,
  int? my,
  int? ml,
  int? mr,
  int? mb,
  int? mt,
  String? color,
  String? rounded,
  String? roundedT,
  String? roundedR,
  String? roundedB,
  String? roundedL,
  String? roundedTl,
  String? roundedTr,
  String? roundedBl,
  String? roundedBr,
}) {
  return TwStyle(
    p: p ?? this.p,
    px: px ?? this.px,
    py: py ?? this.py,
    pl: pl ?? this.pl,
    pr: pr ?? this.pr,
    pb: pb ?? this.pb,
    pt: pt ?? this.pt,
    m: m ?? this.m,
    mx: mx ?? this.mx,
    my: my ?? this.my,
    ml: ml ?? this.ml,
    mr: mr ?? this.mr,
    mb: mb ?? this.mb,
    mt: mt ?? this.mt,
    color: color ?? this.color,
    rounded: rounded ?? this.rounded,
    roundedT: roundedT ?? this.roundedT,
    roundedR: roundedR ?? this.roundedR,
    roundedB: roundedB ?? this.roundedB,
    roundedL: roundedL ?? this.roundedL,
    roundedTl: roundedTl ?? this.roundedTl,
    roundedTr: roundedTr ?? this.roundedTr,
    roundedBl: roundedBl ?? this.roundedBl,
    roundedBr: roundedBr ?? this.roundedBr,
  );
}