styled static method

Table styled(
  1. List<String> headers,
  2. List<List<Object?>> rows, {
  3. Style? headerStyle,
  4. Border? border,
})

Creates a table with styled headers.

Implementation

static Table styled(
  List<String> headers,
  List<List<Object?>> rows, {
  Style? headerStyle,
  style_border.Border? border,
}) {
  final table = Table()
    ..headers(headers)
    ..rows(rows);

  if (headerStyle != null) table.headerStyle(headerStyle);
  if (border != null) table.border(border);

  return table;
}