invalidate static method
Drops the partition of metrics (or all partitions when null).
Implementation
static void invalidate([DimenMetrics? metrics]) {
if (metrics == null) {
_partitions.clear();
} else {
_partitions.remove(metrics);
}
notifyResetListeners();
}