RDB class
The main class for Firestorm, providing access to Firestore and various operations.
Constructors
- RDB()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Properties
- create → RDBCreateDelegate
-
final
- delete → RDBDeleteDelegate
-
final
-
deserializers
→ Map<
Type, Deserializer> -
final
- exists → RDBExistDelegate
-
final
- get → RDBGetDelegate
-
final
- instance ↔ FirebaseDatabase
-
getter/setter pair
- list → RDBListDelegate
-
final
- listen → RDBListenDelegate
-
final
- reference → RDBReferenceDelegate
-
final
-
serializers
→ Map<
Type, Serializer> -
final
- update → RDBUpdateDelegate
-
final
Static Methods
-
constructPathForClass(
Type type, {String? subcollection}) → String - Constructs a path for a class.
-
constructPathForClassAndID(
Type type, String id, {String? subcollection}) → String - Constructs a path for a RDB object based on its type and ID.
-
disableCaching(
) → dynamic - Disables local caching for Firestore data.
-
enableCaching(
) → dynamic - Enables local caching for Firestore data.
-
init(
) → dynamic - Initializes the RDB instance. This should be called before any other Firestore operations.
-
initWithOptions(
FirebaseOptions options) → dynamic - Initializes the RDB instance with custom options.
-
registerDeserializer<
T> (T fromMap(Map< String, dynamic> )) → void - Registers a deserializer for a specific type. Needed for dynamically deserializing objects. NOTE: This function is called by generated code in the target Flutter app. You should not call this function directly in your code.
-
registerSerializer<
T> (Map< String, dynamic> function(T obj)) → void - Registers a serializer for a specific type. Needed for dynamically serializing objects. NOTE: This function is called by generated code in the target Flutter app. You should not call this function directly in your code.
-
shutdown(
) → Future< void> - Shuts down the RDB instance. If used again, a new instance has to be created by calling RDB.init()
-
useEmulator(
String host, int port) → dynamic - Configures RDB to use the emulator instead of the real database.