openSlidesViewer static method

Future<void> openSlidesViewer({
  1. required BuildContext context,
  2. String? filePath,
  3. String? url,
  4. String? googleSlidesId,
  5. required SlidesSourceType sourceType,
  6. String? title,
  7. bool enableNavigation = true,
  8. bool enableInteractions = true,
  9. bool presentationMode = false,
  10. int initialSlide = 1,
})

Implementation

static Future<void> openSlidesViewer({
  required BuildContext context,
  String? filePath,
  String? url,
  String? googleSlidesId,
  required SlidesSourceType sourceType,
  String? title,
  bool enableNavigation = true,
  bool enableInteractions = true,
  bool presentationMode = false,
  int initialSlide = 1,
}) async {
  await Navigator.of(context).push(
    MaterialPageRoute(
      builder: (context) => BoltSlidesViewer(
        filePath: filePath,
        url: url,
        googleSlidesId: googleSlidesId,
        sourceType: sourceType,
        title: title,
        enableNavigation: enableNavigation,
        enableInteractions: enableInteractions,
        presentationMode: presentationMode,
        initialSlide: initialSlide,
      ),
    ),
  );
}