copyWith method

DisposeFunctionConfig copyWith({
  1. bool? isInstance,
  2. String? name,
  3. ImportableType? importableType,
})

Implementation

DisposeFunctionConfig copyWith({
  bool? isInstance,
  String? name,
  ImportableType? importableType,
}) {
  if ((isInstance == null || identical(isInstance, this.isInstance)) &&
      (name == null || identical(name, this.name)) &&
      (importableType == null ||
          identical(importableType, this.importableType))) {
    return this;
  }

  return DisposeFunctionConfig(
    isInstance: isInstance ?? this.isInstance,
    name: name ?? this.name,
    importableType: importableType ?? this.importableType,
  );
}