Use dart.library.io and dart.library.js_interop conditions to split a single storage API into native and web implementations at compile time.