copyWith method

TableMeta copyWith({
  1. List<String>? alignment,
  2. bool? hasHeader,
})

Creates a copy with updated values.

Implementation

TableMeta copyWith({
  List<String>? alignment,
  bool? hasHeader,
}) {
  return TableMeta(
    alignment: alignment ?? this.alignment,
    hasHeader: hasHeader ?? this.hasHeader,
  );
}