copyWith method

StoryServices copyWith({
  1. CaptureServiceFactory? createCapture,
  2. GallerySource? gallery,
  3. PermissionService? permissions,
  4. MediaInspector? inspector,
  5. MusicSessionFactory? createMusicSession,
  6. VideoSessionFactory? createVideoSession,
  7. StoryExporter? exporter,
  8. 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,
);