startPolicy method
Implementation
void startPolicy(FlushPolicy policy) {
policy.start();
final observer = policy.addListener((shouldFlush) {
if (shouldFlush) {
_onFlush();
}
});
_observers.add(observer);
}
void startPolicy(FlushPolicy policy) {
policy.start();
final observer = policy.addListener((shouldFlush) {
if (shouldFlush) {
_onFlush();
}
});
_observers.add(observer);
}