StoryServices class

The platform services the story creator uses.

StoryServices.platform wires the real plugins. Replace individual services with copyWith, e.g. a simulated camera on the iOS Simulator or fakes in tests.

Constructors

StoryServices({required CaptureServiceFactory createCapture, required GallerySource gallery, required PermissionService permissions, required MediaInspector inspector, required MusicSessionFactory createMusicSession, required VideoSessionFactory createVideoSession, required StoryExporter exporter, required GallerySaver gallerySaver})
Creates a service set.
const
StoryServices.platform(StoryCreatorConfig config)
Real implementations for config.
factory

Properties

createCapture → CaptureServiceFactory
Camera factory.
final
createMusicSession → MusicSessionFactory
Music player factory.
final
createVideoSession → VideoSessionFactory
Video player factory.
final
exporter → StoryExporter
Export engine.
final
Photo library.
final
gallerySaver → GallerySaver
Gallery writer.
final
hashCode → int
The hash code for this object.
no setterinherited
inspector → MediaInspector
Native media inspection.
final
permissions → PermissionService
Camera and microphone permissions.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({CaptureServiceFactory? createCapture, GallerySource? gallery, PermissionService? permissions, MediaInspector? inspector, MusicSessionFactory? createMusicSession, VideoSessionFactory? createVideoSession, StoryExporter? exporter, GallerySaver? gallerySaver}) → StoryServices
Returns a copy with the given services replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited