deleteTile abstract method

  1. @visibleForTesting
Future<bool?> deleteTile({
  1. required String storeName,
  2. required String url,
})

Remove the tile from the specified store, deleting it if was orphaned

As tiles can belong to multiple stores, a tile cannot be safely 'truly' deleted unless it does not belong to any other stores (it was an orphan). A tile that is not an orphan will just be 'removed' from the specified store.

Returns:

  • null : if there was no existing tile
  • true : if the tile itself could be deleted (it was orphaned)
  • false: if the tile still belonged to at least one other store

Implementation

@visibleForTesting
Future<bool?> deleteTile({
  required String storeName,
  required String url,
});