createNotificationBatcher function
NotificationBatcher
createNotificationBatcher({
- BatchingStrategy strategy = BatchingStrategy.frame,
- Duration delay = const Duration(milliseconds: 16),
- int maxBatchSize = 100,
- bool enableFrameAlignment = true,
Creates a notification batcher with custom configuration.
Implementation
NotificationBatcher createNotificationBatcher({
BatchingStrategy strategy = BatchingStrategy.frame,
Duration delay = const Duration(milliseconds: 16),
int maxBatchSize = 100,
bool enableFrameAlignment = true,
}) {
return NotificationBatcher(
BatchingConfig(
strategy: strategy,
delay: delay,
maxBatchSize: maxBatchSize,
enableFrameAlignment: enableFrameAlignment,
),
);
}