Ipns constructor

Ipns(
  1. String? bucketUuid,
  2. String ipnsUuid, {
  3. Map<String, dynamic>? data,
})

Constructor which should only be called via StorageBucket class. @param bucketUuid Unique identifier of the file's bucket. @param ipnsUuid Unique identifier of the IPNS record. @param data Data to populate the IPNS record with.

Implementation

Ipns(
  this.bucketUuid,
  String ipnsUuid, {
  Map<String, dynamic>? data,
}) : super(ipnsUuid) {
  apiPrefix = '/storage/buckets/$bucketUuid/ipns/$ipnsUuid';
  populate(data);
}