componentType property

  1. @Deprecated('Use componentFactory instead as it is more tree-shakable')
  2. @Input()
set componentType (Type? dartType)

The type of component to dynamically render.

Implementation

@Deprecated('Use componentFactory instead as it is more tree-shakable')
@Input()
set componentType(Type? dartType) {
  if (_componentType != dartType) _typeChanged = true;
  _componentType = dartType;
}