copyWith method
ModuleConfig
copyWith({
- bool? isAbstract,
- bool? isModuleMethod,
- ImportableType? module,
- String? initializerName,
Implementation
ModuleConfig copyWith({
bool? isAbstract,
bool? isModuleMethod,
ImportableType? module,
String? initializerName,
}) {
if ((isAbstract == null || identical(isAbstract, this.isAbstract)) &&
(isModuleMethod == null || identical(isModuleMethod, isMethod)) &&
(module == null || identical(module, type)) &&
(initializerName == null ||
identical(initializerName, this.initializerName))) {
return this;
}
return ModuleConfig(
isAbstract: isAbstract ?? this.isAbstract,
isMethod: isModuleMethod ?? isMethod,
type: module ?? type,
initializerName: initializerName ?? this.initializerName,
);
}