Scope class abstract interface Database

A namespace for Collections.

A scope implicitly exists when there is at least one collection created under it.

Lifecycle

A Scope remains valid until either the Database is closed or the Scope itself is invalidated because all Collections in the Scope have been deleted.

Implementers

Properties

collections FutureOr<List<Collection>>
The Collections in this scope.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
The name of this scope.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

collection(String name) FutureOr<Collection?>
Returns the Collection with the given name in this scope.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

defaultName → const String
The name of the default scope.