Optional.table constructor

Optional.table({
  1. String? keys,
  2. String? values,
  3. ApplyMethod? apply,
  4. String? regex,
  5. int? regexGroup,
  6. String? regexReplace,
  7. String? regexReplaceWith,
  8. Map<String, String>? replaceFirst,
  9. Map<String, String>? replaceAll,
  10. int? cropStart,
  11. int? cropEnd,
  12. String? prepend,
  13. String? append,
  14. List<Object>? match,
  15. int? nth,
  16. String? splitBy,
  17. List<TransformationType>? transformationOrder,
})

Named constructor for Table-specific optional parameters

Implementation

factory Optional.table({
  String? keys,
  String? values,
  // Optional common fields
  ApplyMethod? apply,
  String? regex,
  int? regexGroup,
  String? regexReplace,
  String? regexReplaceWith,
  Map<String, String>? replaceFirst,
  Map<String, String>? replaceAll,
  int? cropStart,
  int? cropEnd,
  String? prepend,
  String? append,
  List<Object>? match,
  int? nth,
  String? splitBy,
  List<TransformationType>? transformationOrder,
}) {
  return Optional._(
    keys: keys,
    values: values,
    apply: apply,
    regex: regex,
    regexGroup: regexGroup,
    regexReplace: regexReplace,
    regexReplaceWith: regexReplaceWith,
    replaceFirst: replaceFirst,
    replaceAll: replaceAll,
    cropStart: cropStart,
    cropEnd: cropEnd,
    prepend: prepend,
    append: append,
    match: match,
    nth: nth,
    splitBy: splitBy,
    transformationOrder: transformationOrder,
  );
}