newStore<I extends Info, E extends Entry<I> , T extends Store<I, E> > function
Future<T>
newStore<I extends Info, E extends Entry<I> , T extends Store<I, E> >(
- TestContext<
I, E, T> ctx
Creates a new store
ctx
: The test context
Implementation
Future<T> newStore<I extends Info, E extends Entry<I>, T extends Store<I, E>>(
TestContext<I, E, T> ctx) {
return ctx.newStore().then((store) {
return store
.create(_defaultStore, fromEncodable: ctx.generator.fromEncodable)
.then((_) => store);
});
}