copyWith method
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,
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,
);
}