create static method
Implementation
static Future<RunStateStore> create({
required File file,
required String configHash,
required String operation,
}) async {
final now = DateTime.now().toUtc();
final store = RunStateStore._(
file,
RunState(
configHash: configHash,
operation: operation,
startedAt: now,
),
);
await store.flush();
return store;
}