typed_firestore 0.3.1 copy "typed_firestore: ^0.3.1" to clipboard
typed_firestore: ^0.3.1 copied to clipboard

outdated

Typed firebase.storage for flutter

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');


2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Typed firebase.storage for flutter

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

built_value, cloud_firestore, flutter, quiver

More

Packages that depend on typed_firestore