flutter_db_inspector_get_storage 2.0.0 copy "flutter_db_inspector_get_storage: ^2.0.0" to clipboard
flutter_db_inspector_get_storage: ^2.0.0 copied to clipboard

GetStorage adapter for Flutter DB Inspector. Inspect and edit GetStorage containers while your app runs.

flutter_db_inspector_get_storage #

GetStorage adapter for Flutter DB Inspector. Browse, search and edit GetStorage containers while your app runs.

Install #

dependencies:
  flutter_db_inspector: ^2.0.0
  flutter_db_inspector_get_storage: ^2.0.0

Register #

await GetStorage.init();
await GetStorage.init('cache');

DbInspector.initialize(enabled: kDebugMode);
DbInspector.registerDatabase(
  name: 'storage',
  adapter: GetStorageAdapter({
    'GetStorage': GetStorage(),
    'cache': GetStorage('cache'),
  }),
);

Each container is an entity with key, value and type columns.

Limitations #

  • GetStorage does not expose its container name, so containers are passed as a name → instance map.
  • Values are persisted as JSON: inserts and updates accept JSON values only, and custom objects held in memory by the app (shown through toJson()) are not overwritten with plain JSON (UNSUPPORTED_OPERATION).
  • Filtering, sorting and search run in memory.
0
likes
140
points
179
downloads

Documentation

API reference

Publisher

verified publishermanishdevan.com

Weekly Downloads

GetStorage adapter for Flutter DB Inspector. Inspect and edit GetStorage containers while your app runs.

Homepage
Repository (GitHub)
View/report issues

Topics

#get-storage #storage #key-value #inspector

License

MIT (license)

Dependencies

flutter, flutter_db_inspector, get_storage

More

Packages that depend on flutter_db_inspector_get_storage