diff --git a/packages/sane/lib/src/sane.dart b/packages/sane/lib/src/sane.dart index bc20195..420dd94 100644 --- a/packages/sane/lib/src/sane.dart +++ b/packages/sane/lib/src/sane.dart @@ -14,10 +14,10 @@ import 'package:sane/src/utils.dart'; typedef AuthCallback = SaneCredentials Function(String resourceName); class Sane { - factory Sane() => _instance ??= Sane._(); Sane._(); + static Sane? _instance; bool _exited = false; final Map _nativeHandles = {};