Options constructor

Options({
  1. bool? isLinkingAllowed,
  2. bool? isCreationAllowed,
  3. bool? isAutoCreation,
  4. bool? isAutoUpdate,
  5. AutoLinkingOption? autoLinking,
})

Implementation

factory Options({
  $core.bool? isLinkingAllowed,
  $core.bool? isCreationAllowed,
  $core.bool? isAutoCreation,
  $core.bool? isAutoUpdate,
  AutoLinkingOption? autoLinking,
}) {
  final result = create();
  if (isLinkingAllowed != null) result.isLinkingAllowed = isLinkingAllowed;
  if (isCreationAllowed != null) result.isCreationAllowed = isCreationAllowed;
  if (isAutoCreation != null) result.isAutoCreation = isAutoCreation;
  if (isAutoUpdate != null) result.isAutoUpdate = isAutoUpdate;
  if (autoLinking != null) result.autoLinking = autoLinking;
  return result;
}