copyWith method

AtomicTextListItem copyWith({
  1. String? text,
  2. String? subText,
  3. TextStyle? textStyle,
  4. TextStyle? subTextStyle,
  5. VoidCallback? onTap,
  6. bool? enabled,
  7. int? maxLines,
  8. 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,
  );
}