copyWith method
ClassProperty
copyWith({
- TypeName? type,
- ClassPropertyName? name,
- List<
String> ? annotations, - bool? isResolveType,
Creates a copy of ClassProperty without modifying the original.
Implementation
ClassProperty copyWith({
TypeName? type,
ClassPropertyName? name,
List<String>? annotations,
bool? isResolveType,
}) =>
ClassProperty(
type: type ?? this.type,
name: name ?? this.name,
annotations: annotations ?? this.annotations,
isResolveType: isResolveType ?? this.isResolveType,
);