feat: add createViewerWithOptions to ThermionFlutterPlugin and mark createViewer as deprecated

This commit is contained in:
Nick Fisher
2024-09-05 17:47:54 +08:00
parent 0d71b0d8fe
commit f0974509bf
2 changed files with 2 additions and 1 deletions

View File

@@ -60,6 +60,7 @@ class ThermionFlutterPlugin {
}
}
@Deprecated("Use createViewerWithOptions")
static Future<ThermionViewer> createViewer({String? uberArchivePath}) async {
if (_initializing) {
throw Exception("Existing call to createViewer has not completed.");