create method

  1. @override
Future<Storage> create(
  1. WorkerHandlerContext context,
  2. SyncEngineConfig config
)
override

Creates a storage instance for the worker thread.

Called once during worker initialization. The config provides the sync engine configuration, and context provides access to any connectors from StorageMainHandler.create.

Returns a Storage implementation that handles local persistence.

Implementation

@override
Future<Storage> create(
    WorkerHandlerContext context, SyncEngineConfig config) {
  return Future.value(InMemoryStorage());
}