copyWith method
ModernFormViewVideosModel
copyWith(
{ - String? url,
- String? path,
- bool? shareArquiveEnabled,
- void onShareVideoArquiveCallback()?,
- void onShareVideoUrlCallback()?,
- void onDeleteVideoFromDevice()?,
- void onDownloadVideoCallback()?,
- 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,
);
}