isRegistered method
Built on list — a pure client-side filter, no extra HTTP call (the
findByName pattern, keys_service.dart). Used by init's
offer-to-create so it never fires the prompt for a package already on
the account.
Implementation
Future<bool> isRegistered({
required Dio apiDio,
required String packageName,
}) async {
final data = await list(apiDio: apiDio);
final apps = (data['apps'] as List).cast<Map<String, dynamic>>();
return apps.any((app) => app['packageName'] == packageName);
}