getById static method

App? getById(
  1. String id, {
  2. Uri? baseUrl,

Obtain an App instance by id. The app must have first been created by calling the constructor that takes an AppConfiguration on the main isolate. If an App hasn't been already constructed with the same id, will return null. This method is safe to call on a background isolate.


static App? getById(String id, {Uri? baseUrl}) {
  final handle = realmCore.getApp(id, baseUrl?.toString());
  return handle == null ? null : App._(handle);