when method

VxCard when(
  1. bool condition
)
inherited

Uses when clause to render the widget only when the condition is true.

Implementation

T when(bool condition) {
  willRender = condition;
  return _child;
}