copyWith method

ImportableType copyWith({
  1. String? import,
  2. String? prefix,
})

Implementation

ImportableType copyWith({String? import, String? prefix}) {
  return ImportableType(
    import: import ?? this.import,
    prefix: prefix ?? this.prefix,
    name: this.name,
    typeArguments: this.typeArguments,
  );
}