assertUiEntry method

void assertUiEntry(
  1. BundleEntryPoint entry, {
  2. required String bundleId,
})

FR-APP-LOCAL-003

Implementation

void assertUiEntry(BundleEntryPoint entry, {required String bundleId}) {
  if (entry.type != BundleEntryType.ui) {
    throw BundleAdaptException(
      bundleId: bundleId,
      reason: BundleAdaptReason.unsupportedEntryPoint,
      message:
          'AppPlayer openAppFromBundle supports ui.* entries only — got $entry',
    );
  }
}