copyWith method

ModuleExport copyWith({
  1. String? name,
  2. ExternType? type,
})

Returns a new instance by overriding the values passed as arguments

Implementation

ModuleExport copyWith({
  String? name,
  ExternType? type,
}) =>
    ModuleExport(name: name ?? this.name, type: type ?? this.type);