Link constructor

Link({
  1. LinkType? type,
  2. String? url,
  3. String? translationKey,
  4. LinkTarget? target,
})

Implementation

factory Link({
  LinkType? type,
  $core.String? url,
  $core.String? translationKey,
  LinkTarget? target,
}) {
  final result = Link._();
  if (type != null) result.type = type;
  if (url != null) result.url = url;
  if (translationKey != null) result.translationKey = translationKey;
  if (target != null) result.target = target;
  return result;
}