contextWhen<R extends T> method
Registers derived class builder that builds the widget depending
on BuildContext
and current type of value
.
Implementation
void contextWhen<R extends T>(ContextDerivedBuilder<R> builder) {
_validateBuilder(R, builder);
_builders[R] = ContextBuilderWrapper<T, R>(builder);
}