WorkDb class
Convenience class with static factory methods for creating ClientWorkDb.
Provides simple methods to create database instances for each environment without requiring configuration parameters.
Usage
// In-memory database (for testing)
final db = WorkDb.memory();
// File-based database (desktop/server)
final db = WorkDb.io();
// Web storage database
final db = WorkDb.web();
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
io(
{int? maxRecordsPerCollection}) → ClientWorkDb - Creates a file-based database instance.
-
memory(
{int? maxRecordsPerCollection}) → ClientWorkDb - Creates an in-memory database instance.
-
web(
{int? maxRecordsPerCollection}) → ClientWorkDb - Creates a web storage database instance.