Optional.any constructor

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

Named constructor for any optional parameters

Implementation

factory Optional.any({
  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._(
    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,
  );
}