Skip to content

Instantly share code, notes, and snippets.

@tcf909
tcf909 / main.dart
Last active March 24, 2022 22:29
Type Error
typedef ModelConstructor<T1 extends Model<T1>> = T1 Function({
ModelDefinition<T1>? dataType,
DocumentReference<Map<String, dynamic>?>? docRef,
Data? parent,
});
typedef RepositoryConstructor<T1 extends Model<T1>> = Repository<T1> Function();
final Map<Type, ModelConstructor<Model<dynamic>>>