find<T extends BaseViewStateProviderController> method

T find<T extends BaseViewStateProviderController>(
  1. {String tag}
)

Implementation

T find<T extends BaseViewStateProviderController>({String tag}){
  if(isNotEmpty(tag)){
    if(_factoriesByName.containsKey(tag)){
      return _factoriesByName[tag];
    }
  }else{
    if(_factories.containsKey(T)){
      return _factories[T];
    }
  }
  return null;
}