XModel class

Constructors

XModel(String className)

Properties

className String
final
fields Xfields
getter/setter pair
firestore → FirebaseFirestore
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
utils Utils
final

Methods

add(Map<String, dynamic> data) Future
database() → CollectionReference<Object?>
delete(dynamic field, dynamic value) → dynamic
deleteAll() → dynamic
filter([dynamic field, dynamic value]) Future<List<XData>>
form([GlobalKey<FormState>? key, XData? instance]) Form
formValue() Map<String, dynamic>
get(dynamic field, dynamic value) Future<XData?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(dynamic field, dynamic value, Map<String, dynamic> data) → dynamic
xStreambuilder(Widget builder(BuildContext, List<XDataModel>?)) StreamBuilder

Operators

operator ==(Object other) bool
The equality operator.
inherited