ok<T> static method
result is Ok; answers its value.
Implementation
static T ok<T>(Result<T, DbError> result, String what) => result.when(
ok: (value) => value,
err: (error) => throw ConformanceFailure('$what: failed with $error'),
);