Bucket class Null safety

Constructors

Bucket(String did, WhereIs whereIs)
Bucket.fromResponse(CreateBucketResponse resp)
Creates a new bucket from a CreateBucketResponse
factory
Bucket.fromWhereIs(WhereIs whereIs)
Creates a new bucket from a WhereIs
factory

Properties

did String
did is the Unique identifier of the bucket
final
hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
whereIs WhereIs
whereIs is the underlying specification of the bucket
final

Methods

addDocument(String label, SchemaDocument doc) Future<bool>
Adds a SchemaDocument into the Bucket and returns bool indicating success
getDocument(String cid) Future<SchemaDocument?>
Retrieves a SchemaDocument from the Bucket
listDocuments() Future<List<SchemaDocument>>
Lists all SchemaDocuments in the Bucket
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
removeDocument(String cid) Future<bool>
Deletes a SchemaDocument from the Bucket given its cid
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromWhereIsList(List<WhereIs> whereIsList) List<Bucket>
Creates List of Bucket from a List of WhereIs