loadOnline method

Future<ApplicationDefinition> loadOnline(
  1. Client client, {
  2. required String serverId,
})

FR-APP-ONLINE-001~005 — Returns a source-kind-labelled ApplicationDefinition that converges with the Local Bundle path emitted by BundleApplicationAdapter.

Implementation

Future<ApplicationDefinition> loadOnline(
  Client client, {
  required String serverId,
}) async {
  final json = await load(client);
  return ApplicationDefinition(
    json: json,
    pageLoader: pageLoaderFor(client),
    sourceKind: ApplicationSourceKind.online,
    appId: serverId,
  );
}