createObjectStore abstract method
creates and returns a new object store or index.
The method takes the name of the store as well as a parameter object that lets you define important optional properties. You can use the property to uniquely identify individual objects in the store. As the property is an identifier, it should be unique to every object, and every object should have that property.
This method can be called only within a versionchange transaction.
Implementation
ObjectStore createObjectStore(String name,
{Object? keyPath, bool? autoIncrement});