removeInAlbum method

Future<bool> removeInAlbum(
  1. AssetEntity entity,
  2. AssetPathEntity path
)

The entity and path isn't null.

Implementation

Future<bool> removeInAlbum(AssetEntity entity, AssetPathEntity path) async {
  if (path.albumType == 2 || path.isAll) {
    assert(path.albumType == 1, "The path must is album");
    assert(
      !path.isAll,
      "The ${path.name}'s asset can't be remove. Use PhotoManager.editor.deleteAsset",
    );
    return false;
  }
  return _plugin.iosRemoveInAlbum([entity], path);
}