Future<MyClass> createMyClass() async { _myClass ??= await MyClass.newInstance(a: Random().nextInt(1000)); return _myClass!; }