openSnaps method
Opens StorifyMe Snaps with the specified parameters.
userId: The user ID associated with the StorifyMe Snaps.
snapName: (Optional) The name of the snap.
tags: (Optional) An iterable of tags associated with the snap.
snapId: (Optional) ID of an existing snap to edit. When provided, the
editor loads that snap instead of creating a new one. Requires token.
token: (Optional) Auth token generated by the StorifyMe API for this user.
Required when snapId is provided.
editorType: (Optional) Type of the editor to open. Defaults to
StorifyMeEditorType.snaps.
Implementation
Future<void> openSnaps({
required String userId,
String? snapName,
Iterable<String>? tags,
int? snapId,
String? token,
StorifyMeEditorType editorType = StorifyMeEditorType.snaps,
}) {
return StorifyMeSnapsPlatform.instance.openSnaps(
userId: userId,
snapName: snapName,
tags: tags,
snapId: snapId,
token: token,
editorType: editorType,
);
}