accountStatus method
The current iCloud account status of containerId, from
CKContainer.accountStatus().
Unlike the other methods, this asks CloudKit about this instance's container and works whether or not an engine is running. Listen for CloudKitAccountChange events to learn when the account changes.
Implementation
Future<CloudKitAccountStatus> accountStatus() async =>
CloudKitAccountStatus.values.byName(
(await CloudKitSyncChannel.invoke<String>(
'accountStatus',
{'containerId': containerId},
))!,
);