addStyleHook method
Registers a rendering styleHook on this document.
Implementation
void addStyleHook(RenderStyleHook hook) {
if (!_styleHooks.contains(hook)) {
_styleHooks.add(hook);
_invalidateStyleHooksCache();
notifyListeners();
}
}