arrayRemove method
update field
realtime value
tells the server to remove the given
elements
from any array value that already exists on the server.
Implementation
Future<void> arrayRemove({
required String field,
required List<dynamic> elements,
String? docId,
}) async {
return await this
.update(docId: docId, data: {field: FieldValue.arrayRemove(elements)});
}