typed_firestore

Creator: coderz1093

Last updated:

0 purchases

typed_firestore Image
typed_firestore Images
Add to Cart

Description:

typed firestore

typed_firestore #
Typed firestore entity.
Usage #

abstract class Car extends DocData implements Built<Car, CarBuilder> {
static Serializer<Car> get serializer => _$carSerializer;

String get title;

@nullable
String get nullableField;

Car._();

factory Car([updates(CarBuilder b)]) = _$Car;
}

@SerializersFor(const [
Car,
])
Serializers serializers = _$serializers;


final firestore = new TypedFirestore(
Firestore.instance,
(serializers.toBuilder()..addPlugin(StandardJsonPlugin())).build(),
);

final CollRef<Car> cars = firestore.collection<Car>('cars');


copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.