Db class
Properties
-
database
→ Future<Database>
-
no setter
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(Object model, [String? pkName, dynamic pkValue, bool includeChild = true])
→ Future<Object>
-
-
close()
→ Future
-
-
convertSqlFieldType(String s)
→ String
-
-
count(String sql)
→ Future<int>
-
-
createTable()
→ List<String>
-
-
delete(Object model, String id, [List<Function>? validators, bool isChildDelete = true])
→ Future<int?>
-
-
execute(String sql)
→ dynamic
-
-
get(Object model, String sql, [List? values, Function? onSuccess])
→ dynamic
-
-
get123(Object model, String sql, [List? values, Function? onSuccess])
→ dynamic
-
-
getPrimaryKeyName(Object model)
→ dynamic
-
-
getPrimaryKeyValue(Object model)
→ dynamic
-
-
getQuiz(Object model, String sql, [List? values, Function? onSuccess])
→ dynamic
-
-
initDatabase()
→ dynamic
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
save(Object model)
→ Future<Object>
-
-
saveSingle(Object model)
→ Future<Object>
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
update(Object model, String where, List args, [bool includeChild = true])
→ Future<Object>
-
Static Methods
-
getCheklistItems(Object model, String valueText, String displayText, {String where = '', String orderSort = 'ASC', String orderBy = '1'})
→ Future<List<RadioCheckData>>
-
-
getDropDownItems(Object model, String valueText, String displayText, {String where = '', String orderSort = 'ASC', String orderBy = '1', String defaults = 'Select an Item', bool defaultOption = true})
→ Future<List<DropdownMenuItem<String>>>
-
-
getDropDownItemText(Object model, String valueText, String displayText, {String where = '', String order = 'ASC', String defaults = 'Select an Item'})
→ Future<String>
-
-
getDropdownText(String modelName, String fieldName, dynamic value)
→ dynamic
-
-
getModelDefaults(String modelName, String fieldName)
→ dynamic
-