copyWith method

Meta<T> copyWith({
  1. String? name,
  2. List<DocumentEntry>? documentation,
  3. String? module,
})

Implementation

Meta<T> copyWith({
  String? name,
  List<DocumentEntry>? documentation,
  String? module,
}) {
  return Meta(
    name: name ?? this.name,
    documentation: documentation ?? this.documentation,
    module: module ?? this.module,

    // shared
    component: component,
    parameters: parameters,
    decorators: decorators,
  );
}