File tree Expand file tree Collapse file tree 6 files changed +1
-16
lines changed
Expand file tree Collapse file tree 6 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ typedef PointerBoolFFICallBackDirect =
3333typedef PointerListFFICallBack = Pointer <Utf8 > Function (Pointer <AppDbState >);
3434
3535class LocalDbBridge extends LocalSbRequestImpl {
36- LocalDbBridge ._();
37-
38- static final LocalDbBridge instance = LocalDbBridge ._();
3936
4037 Result <DynamicLibrary , String >? _lib;
4138 Pointer <AppDbState >? _dbInstance; // Cambiado de late a nullable
Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ import 'package:result_controller/result_controller.dart';
1212/// This implementation provides the same interface as the FFI bridge
1313/// but uses browser's IndexedDB for storage
1414class WebLocalDbBridge extends LocalSbRequestImpl {
15- WebLocalDbBridge ._();
16-
17- static final WebLocalDbBridge instance = WebLocalDbBridge ._();
1815
1916 web.IDBDatabase ? _database;
2017 String ? _databaseName;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class DatabaseManager {
3434 }
3535
3636 if (kIsWeb) {
37- return DatabaseWeb .instance ;
37+ return DatabaseWeb () ;
3838 }
3939
4040 return DatabaseNative ();
Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ import 'database_interface.dart';
77/// This implementation throws appropriate errors for platforms
88/// that don't have native or web database support
99class DatabaseStub implements DatabaseInterface {
10- DatabaseStub ._();
11-
12- static final DatabaseStub instance = DatabaseStub ._();
1310
1411 @override
1512 bool get isSupported => false ;
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ import 'database_interface.dart';
1515/// Web database implementation using IndexedDB with dart:js_interop
1616/// This implementation is used for web platforms
1717class DatabaseWeb implements DatabaseInterface {
18- DatabaseWeb ._();
19-
20- static final DatabaseWeb instance = DatabaseWeb ._();
2118
2219 web.IDBDatabase ? _database;
2320 String ? _databaseName;
Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ import 'database_interface.dart';
66/// Stub implementation for non-web platforms
77/// This prevents web code from being compiled on mobile/desktop
88class DatabaseWeb implements DatabaseInterface {
9- DatabaseWeb ._();
10-
11- static final DatabaseWeb instance = DatabaseWeb ._();
129
1310 @override
1411 bool get isSupported => false ;
You can’t perform that action at this time.
0 commit comments