add method

Map<String, dynamic> add(
  1. List<String> fields
)

Implementation

static Map<String, dynamic> add(List<String> fields) {
  return {"\$add": fields.map((f) => "\$$f").toList()};
}