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
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