FirebaseStore<T> constructor

  1. @protected
FirebaseStore<T>({
  1. required FirebaseStore parent,
  2. required String path,
})

Constructs a store from a parent store and a sub path.

The created store will use the same restApi as the parent, but append path to it's subPaths, meaning it will have a deeper virtual root as it's parent.

This is a protected constructor, typically used when extending this class.

Implementation

@protected
FirebaseStore({
  required FirebaseStore<dynamic> parent,
  required String path,
})   : restApi = parent.restApi,
      subPaths = [...parent.subPaths, path];