when method
Uses when clause to render the widget only when the condition is true.
Implementation
T when(bool condition) {
willRender = condition;
return _child;
}
Uses when clause to render the widget only when the condition is true.
T when(bool condition) {
willRender = condition;
return _child;
}