Bucket class Null safety

Constructors

Bucket(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
read-only
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

add(SchemaDocument doc) Future<BucketItem?>
Adds a SchemaDocument into the Bucket and returns bool indicating success
fetch({required String cid}) Future<GetDocumentResponse>
Fetching a Document
get(String label) Future<SchemaDocument?>
Retrieves a SchemaDocument from the Bucket by label
listItems() Future<List<SchemaDocument>>
Lists all SchemaDocuments in the Bucket
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
refresh() → dynamic
Refreshing a Bucket
remove(String label) Future<bool>
Deletes a SchemaDocument from the Bucket given its label
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