# copyWith method Null safety

1. @override

LinkModel copyWith(

1. {String? documentID,
2. String? linkText,
3. ActionModel? action}

)
override

## Implementation

    @override
    LinkModel copyWith({
      String? documentID,
      String? linkText,
      ActionModel? action,
    }) {
      return LinkModel(
        documentID: documentID ?? this.documentID,
        linkText: linkText ?? this.linkText,
        action: action ?? this.action,
      );
    }