copyWith method Null safety

ModernFormViewVideosModel copyWith(
  1. {String? url,
  2. String? path,
  3. bool? shareArquiveEnabled,
  4. void onShareVideoArquiveCallback(
      )?,
    1. void onShareVideoUrlCallback(
        )?,
      1. void onDeleteVideoFromDevice(
          )?,
        1. void onDownloadVideoCallback(
            )?,
          1. void onOpenVideoCallback(
              )?}
            )

            Implementation

            ModernFormViewVideosModel copyWith({
              String? url,
              String? path,
              bool? shareArquiveEnabled,
              void Function()? onShareVideoArquiveCallback,
              void Function()? onShareVideoUrlCallback,
              void Function()? onDeleteVideoFromDevice,
              void Function()? onDownloadVideoCallback,
              void Function()? onOpenVideoCallback,
            }) {
              return ModernFormViewVideosModel(
                url: url ?? this.url,
                path: path ?? this.path,
                shareArquiveEnabled: shareArquiveEnabled ?? this.shareArquiveEnabled,
                onShareVideoArquiveCallback:
                    onShareVideoArquiveCallback ?? this.onShareVideoArquiveCallback,
                onShareVideoUrlCallback:
                    onShareVideoUrlCallback ?? this.onShareVideoUrlCallback,
                onDeleteVideoFromDevice:
                    onDeleteVideoFromDevice ?? this.onDeleteVideoFromDevice,
                onDownloadVideoCallback:
                    onDownloadVideoCallback ?? this.onDownloadVideoCallback,
                onOpenVideoCallback: onOpenVideoCallback ?? this.onOpenVideoCallback,
              );
            }