containerPath static method

Future<String?> containerPath(
  1. String groupId
)

Absolute path of the container directory shared by every target entitled for groupId (FileManager.containerURL(forSecurityApplicationGroupIdentifier:)).

Null on non-Apple platforms and when the calling target isn't entitled for groupId. The directory itself is created by the OS; subdirectories are the caller's to make.

Implementation

static Future<String?> containerPath(String groupId) async {
  if (!supported) return null;
  return _channel.invokeMethod<String>('containerPath', {'groupId': groupId});
}