copyWith method

CustomType copyWith({
  1. bool? nullable,
  2. List<TypeMember>? members,
})

Copy this instance with different nullable value.

Implementation

CustomType copyWith({
  bool? nullable,
  List<TypeMember>? members,
}) =>
    CustomType(
      className: className,
      members: members ?? this.members,
      nullable: nullable ?? this.nullable,
    );