ModelFactory<T extends Model> class

Constructors

ModelFactory()

Properties

cities List<String>
final
hashCode int
The hash code for this object.
no setterinherited
images List<String>
final
names List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create({Map<String, dynamic> data = const {}}) Future<T>
createRelations(T model) Future<Map<String, dynamic>>
getBool() bool
getCity() String
getId() Future<String>
getImage() String
getInt({int min = 0, int max = 10000}) int
getName() String
getTimestampInFuture() int
getTimestampInPast() int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCreate(Map<String, dynamic> data) Future<T>
some({Map<String, dynamic> data = const {}, int? count}) Future<List<T>>
toString() String
A string representation of this object.
inherited

Operators

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