environment property

SDKEnvironment get environment

Get current environment from C++ state

Implementation

SDKEnvironment get environment {
  try {
    final lib = PlatformLoader.loadCommons();
    final getEnv = lib.lookupFunction<Int32 Function(), int Function()>(
        'rac_state_get_environment');
    return _intToEnvironment(getEnv());
  } catch (e) {
    return SDKEnvironment.development;
  }
}