Component constructor

const Component({
  1. required String selector,
  2. String? exportAs,
  3. List<Object> providers = const [],
  4. Visibility visibility = Visibility.local,
  5. List<Object> viewProviders = const [],
  6. List<Object?> exports = const [],
  7. int changeDetection = ChangeDetectionStrategy.Default,
  8. String? templateUrl,
  9. String? template,
  10. bool preserveWhitespace = false,
  11. List<String> styleUrls = const [],
  12. List<String> styles = const [],
  13. List<Object> directives = const [],
  14. List<Typed<Object>> directiveTypes = const [],
  15. List<Object> pipes = const [],
  16. ViewEncapsulation encapsulation = ViewEncapsulation.Emulated,
})

Implementation

const Component({
  required super.selector,
  super.exportAs,
  super.providers = const [],
  super.visibility = Visibility.local,
  this.viewProviders = const [],
  this.exports = const [],
  this.changeDetection = ChangeDetectionStrategy.Default,
  this.templateUrl,
  this.template,
  this.preserveWhitespace = false,
  this.styleUrls = const [],
  this.styles = const [],
  this.directives = const [],
  this.directiveTypes = const [],
  this.pipes = const [],
  this.encapsulation = ViewEncapsulation.Emulated,
});