copyWith method
AtomicTextListItem
copyWith({
- String? text,
- String? subText,
- TextStyle? textStyle,
- TextStyle? subTextStyle,
- VoidCallback? onTap,
- bool? enabled,
- int? maxLines,
- TextOverflow? overflow,
Implementation
AtomicTextListItem copyWith({
String? text,
String? subText,
TextStyle? textStyle,
TextStyle? subTextStyle,
VoidCallback? onTap,
bool? enabled,
int? maxLines,
TextOverflow? overflow,
}) {
return AtomicTextListItem(
text: text ?? this.text,
subText: subText ?? this.subText,
textStyle: textStyle ?? this.textStyle,
subTextStyle: subTextStyle ?? this.subTextStyle,
onTap: onTap ?? this.onTap,
enabled: enabled ?? this.enabled,
maxLines: maxLines ?? this.maxLines,
overflow: overflow ?? this.overflow,
);
}