copyWith method

ResolvedType copyWith({
  1. String? import,
  2. String? name,
  3. List<ResolvedType>? typeArguments,
  4. bool? isNullable,
})

Implementation

ResolvedType copyWith({
  String? import,
  String? name,
  List<ResolvedType>? typeArguments,
  bool? isNullable,
}) {
  return ResolvedType(
    import: import ?? this.import,
    name: name ?? this.name,
    isNullable: isNullable ?? this.isNullable,
    typeArguments: typeArguments ?? this.typeArguments,
  );
}