TableParserOptions constructor

TableParserOptions({
  1. required String keys,
  2. String? values,
})

Creates a new TableParserOptions instance.

keys is required and must be a valid selector for identifying table keys/headers. This can be a CSS selector for HTML tables or a JSON path for JSON table structures.

values is optional and specifies the selector for table data values. If omitted, the parser will infer the values based on the keys selector.

Example usage:

// For HTML tables
TableParserOptions(
  keys: "tr th",
  values: "tr td",
)

// For JSON tables
TableParserOptions(
  keys: "$.headers",
  values: "$.data",
)

Implementation

TableParserOptions({
  required this.keys,
  this.values,
});