Future<Either<Exception, dynamic>> runSync(Function function) async { try { return Right(await function.call()); } catch (e) { return Left(Exception(e.toString())); } }