ModelApiController<OutputType extends Model, DbSetType extends ModelDbSet<OutputType>> class
Constructors
-
ModelApiController({required Dio dio, required String name, required OutputType fromMap(Map<String, dynamic> data), required DbSetType dbSet, Set<OutputType> rows = const {}})
-
Properties
-
dbSet
→ DbSetType
-
final
-
dio
→ Dio
-
finalinherited
-
fromMap
→ OutputType Function(Map<String, dynamic> data)
-
finalinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
name
→ String
-
finalinherited
-
rows
→ Set<OutputType>
-
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(Map<String, Object> primaryKeys, {Options? options, CancelToken? cancelToken, bool caching = false})
→ Future<OutputType?>
-
override
-
get({Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, void onReceiveProgress(int total, int finish)?, bool caching = false})
→ Future<List<OutputType>>
-
override
-
getById(Object id, {Options? options, CancelToken? cancelToken, void onReceiveProgress(int total, int finish)?, bool caching = false})
→ Future<OutputType?>
-
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
pathBuild([String? methodPath])
→ String
-
inherited
-
post(Map<String, dynamic> data, {Options? options, CancelToken? cancelToken, void onReceiveProgress(int total, int finish)?, void onSendProgress(int total, int finish)?, bool caching = false})
→ Future<OutputType?>
-
override
-
put(Map<String, Object> primaryKeys, Map<String, dynamic> data, {Options? options, CancelToken? cancelToken, void onReceiveProgress(int total, int finish)?, void onSendProgress(int total, int finish)?, bool caching = false})
→ Future<OutputType?>
-
override
-
toString()
→ String
-
A string representation of this object.
inherited