applyState method
An implementation of the typedef interface AsyncApplyState
.
Converts state
into a set of CSS property mutations on pane
, applying
them in the next DOM write queue, and returning a future that completes
after applied.
Implementation
Future<void> applyState(OverlayState state, HtmlElement pane) async {
if (!_useDomSynchronously) {
return _domService.onWrite().then((_) {
applyStateSync(state, pane);
});
} else {
applyStateSync(state, pane);
}
}