copyWith method
PageBlockTableCell
copyWith({
- RichText? text()?,
- bool? isHeader,
- int? colspan,
- int? rowspan,
- PageBlockHorizontalAlignment? align,
- PageBlockVerticalAlignment? valign,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
PageBlockTableCell copyWith({
RichText? Function()? text,
bool? isHeader,
int? colspan,
int? rowspan,
PageBlockHorizontalAlignment? align,
PageBlockVerticalAlignment? valign,
}) =>
PageBlockTableCell(
text: text != null ? text() : this.text,
isHeader: isHeader ?? this.isHeader,
colspan: colspan ?? this.colspan,
rowspan: rowspan ?? this.rowspan,
align: align ?? this.align,
valign: valign ?? this.valign,
);