refresh method
Refreshes the component, calling render.
- If ![isRendered] it won't refresh the component.
Use
forceRender
if you want to ensure that it will be rendered even if it wasn't rendered yet. A component is automatically rendered when constructed. If a component has not yet been rendered, it may not have been properly constructed or initialized yet.
Implementation
void refresh({bool forceRender = false}) {
try {
__refreshFromExternalCall = true;
_refreshImpl(forceRender: forceRender);
} finally {
__refreshFromExternalCall = false;
}
}