copyWith method

ModuleImport copyWith({
  1. String? module,
  2. String? name,
  3. ExternType? type,
})

Returns a new instance by overriding the values passed as arguments

Implementation

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