FirebaseStore<T>.api constructor

  1. @protected
FirebaseStore<T>.api({
  1. required RestApi restApi,
  2. required List<String> subPaths,
})

Constructs a store from a restApi and a list of subPaths.

This is a direct constructor, without utilizing a parent store. However, it requires you to get access to a RestApi first.

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

Note: Typically, you would use a FirebaseDatabase to create a "root" store instead of using this constructor.

Implementation

@protected
FirebaseStore.api({
  required this.restApi,
  required this.subPaths,
});