getVM method

Future<ApolloVM?> getVM()

Returns a ApolloVM loaded with the formula code.

Implementation

Future<ApolloVM?> getVM() async {
  if (_vm == null) {
    var vm = await source.createVM();
    _vm = vm;
    return vm;
  } else {
    return _vm!;
  }
}