renameCollection method

Future<void> renameCollection(
  1. String oldName,
  2. String newName
)

Renames database collection.

Implementation

Future<void> renameCollection(String oldName, String newName) {
  return _mc
      .invokeMethod('renameCollection', [_handle, oldName, newName]).catchError(_errorHandler());
}