removeOldestTilesAboveLimit abstract method

Future<int> removeOldestTilesAboveLimit({
  1. required String storeName,
  2. required int tilesLimit,
})

Remove tiles in excess of the specified limit from the specified store, oldest first

Should internally debounce, as this is a repeatedly invoked & potentially expensive operation, that will have no effect when the number of tiles in the store is below the limit.

Returns the number of tiles that were actually deleted (they were orphaned (see deleteTile for more info)).

Throws RootUnavailable if the root is uninitialised whilst the debouncing mechanism is running.

Implementation

Future<int> removeOldestTilesAboveLimit({
  required String storeName,
  required int tilesLimit,
});