Component constructor
const
Component({
- required String selector,
- String? exportAs,
- List<
Object> providers = const [], - Visibility visibility = Visibility.local,
- List<
Object> viewProviders = const [], - List<
Object?> exports = const [], - int changeDetection = ChangeDetectionStrategy.Default,
- String? templateUrl,
- String? template,
- bool preserveWhitespace = false,
- List<
String> styleUrls = const [], - List<
String> styles = const [], - List<
Object> directives = const [], - List<
Typed< directiveTypes = const [],Object> > - List<
Object> pipes = const [], - 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,
});