copyWith method

ModernFormViewVideosModel copyWith({
  1. String? url,
  2. String? path,
  3. bool? shareArquiveEnabled,
  4. void onShareVideoArquiveCallback()?,
  5. void onShareVideoUrlCallback()?,
  6. void onDeleteVideoFromDevice()?,
  7. void onDownloadVideoCallback()?,
  8. 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,
  );
}