copyWith method

LinkEntity copyWith({
  1. String? documentID,
  2. String? linkText,
  3. ActionEntity? action,
})

Implementation

LinkEntity copyWith({
  String? documentID,
  String? linkText,
  ActionEntity? action,
}) {
  return LinkEntity(
    linkText: linkText ?? this.linkText,
    action: action ?? this.action,
  );
}