StoragePath.fromIdentityId constructor

StoragePath.fromIdentityId(
  1. String pathBuilder(
    1. String identityId
    )
)

Creates a StoragePath from the current user's identityId.

Example

const p = StoragePath.fromIdentityId((String identityId) => 'users/$identityId/object.png');

Implementation

factory StoragePath.fromIdentityId(
  String Function(String identityId) pathBuilder,
) =>
    StoragePathFromIdentityId(pathBuilder);