static Future<T> safe<T>( Context? ctx, Future<T> Function(Context ctx) fn) async { ctx ??= context(); return await fn(ctx); }