copyWith method
StoryServices
copyWith({
- CaptureServiceFactory? createCapture,
- GallerySource? gallery,
- PermissionService? permissions,
- MediaInspector? inspector,
- MusicSessionFactory? createMusicSession,
- VideoSessionFactory? createVideoSession,
- StoryExporter? exporter,
- GallerySaver? gallerySaver,
Returns a copy with the given services replaced.
Implementation
StoryServices copyWith({
CaptureServiceFactory? createCapture,
GallerySource? gallery,
PermissionService? permissions,
MediaInspector? inspector,
MusicSessionFactory? createMusicSession,
VideoSessionFactory? createVideoSession,
StoryExporter? exporter,
GallerySaver? gallerySaver,
}) => StoryServices(
createCapture: createCapture ?? this.createCapture,
gallery: gallery ?? this.gallery,
permissions: permissions ?? this.permissions,
inspector: inspector ?? this.inspector,
createMusicSession: createMusicSession ?? this.createMusicSession,
createVideoSession: createVideoSession ?? this.createVideoSession,
exporter: exporter ?? this.exporter,
gallerySaver: gallerySaver ?? this.gallerySaver,
);