contextWhen<R extends T> method

void contextWhen <R extends T>(ContextDerivedBuilder<R> builder)

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);
}