copyWith method
TextCell<T>
copyWith({
- T? itemContent,
- String itemToString(
- T
- double? cellWidth,
- double? cellHeight,
- double? textSize,
- AlignmentGeometry? textAlignment,
- Color? backgroundColor,
- Color? textColor,
- Color? borderColor,
- bool? isBold,
- bool? isItalic,
- bool? isUnderline,
- bool? isAmount,
- CellNumberFormat? numberFormatType,
- RoundMode? roundMode,
- int? roundTo,
- void onTap(
- T
Implementation
TextCell<T> copyWith({
T? itemContent,
String Function(T)? itemToString,
double? cellWidth,
double? cellHeight,
double? textSize,
AlignmentGeometry? textAlignment,
Color? backgroundColor,
Color? textColor,
Color? borderColor,
bool? isBold,
bool? isItalic,
bool? isUnderline,
bool? isAmount,
CellNumberFormat? numberFormatType,
RoundMode? roundMode,
int? roundTo,
void Function(T)? onTap,
}) {
return TextCell<T>(
key: key,
itemContent: itemContent ?? this.itemContent,
itemToString: itemToString ?? this.itemToString,
cellWidth: cellWidth ?? this.cellWidth,
cellHeight: cellHeight ?? this.cellHeight,
textSize: textSize ?? this.textSize,
textAlignment: textAlignment ?? this.textAlignment,
backgroundColor: backgroundColor ?? this.backgroundColor,
textColor: textColor ?? this.textColor,
borderColor: borderColor ?? this.borderColor,
isBold: isBold ?? this.isBold,
isItalic: isItalic ?? this.isItalic,
isUnderline: isUnderline ?? this.isUnderline,
isAmount: isAmount ?? this.isAmount,
numberFormatType: numberFormatType ?? this.numberFormatType,
roundMode: roundMode ?? this.roundMode,
roundTo: roundTo ?? this.roundTo,
onTap: onTap ?? this.onTap,
);
}