BaseRepository<T extends DataModel , TFilter extends DataFilter > class
abstract
Properties
baseUrl
↔ String ?
Whether this repository uses the baseUrl from this getter, returns the baseUrl
If the baseUrl should be watched from a stream, state or something else, returns null
getter/setter pair inherited
hashCode
→ int
The hash code for this object.
no setter inherited
interceptorsWrapper
→ InterceptorsWrapper
InterceptorsWrapper for this repository
Must be set if useInterceptors is true
no setter override
options
→ BaseOptions?
BaseOptions for Dio
Will be used to initialize the dio instance
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
useInterceptors
→ bool
Whether this repository uses interceptors or not
Derived classes should override this to change the behavior
no setter override
Methods
addInterceptors (InterceptorsWrapper interceptorsWrapper )
→ dynamic
inherited
approve (T entity )
→ Future <T >
count (TFilter filter )
→ Future <int >
create (T entity )
→ Future <T >
delete (String path , {Object ? data , Map <String , dynamic > ? queryParameters , Options? options , CancelToken? cancelToken , ProgressCallback? onSendProgress , ProgressCallback? onReceiveProgress })
→ Future <Response >
Wrap DELETE method from Dio
inherited
deleteByEntity (T entity )
→ Future <T >
deleteById (num id )
→ Future <T >
download (String urlPath , dynamic savePath , {ProgressCallback? onReceiveProgress , Map <String , dynamic > ? queryParameters , CancelToken? cancelToken , bool deleteOnError = true , Object ? data , Options? options })
→ Future <Response >
inherited
get (String url , {Object ? data , Map <String , dynamic > ? queryParameters , Options? options , CancelToken? cancelToken , ProgressCallback? onReceiveProgress })
→ Future <Response >
Wrap GET method from Dio
inherited
getById (num id )
→ Future <T >
list (TFilter filter )
→ Future <List <T > >
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch (String path , {Object ? data , Map <String , dynamic > ? queryParameters , Options? options , CancelToken? cancelToken , ProgressCallback? onSendProgress , ProgressCallback? onReceiveProgress })
→ Future <Response >
Wrap PATCH method from Dio
inherited
post (String path , {Object ? data , Map <String , dynamic > ? queryParameters , Options? options , CancelToken? cancelToken , ProgressCallback? onSendProgress , ProgressCallback? onReceiveProgress })
→ Future <Response >
Wrap POST method from Dio
inherited
put (String path , {Object ? data , Map <String , dynamic > ? queryParameters , Options? options , CancelToken? cancelToken , ProgressCallback? onSendProgress , ProgressCallback? onReceiveProgress })
→ Future <Response >
Wrap PUT method from Dio
inherited
reject (T entity )
→ Future <T >
request (String url , {Object ? data , Map <String , dynamic > ? queryParameters , CancelToken? cancelToken , Options? options , ProgressCallback? onSendProgress , ProgressCallback? onReceiveProgress })
→ Future <Response >
Wrap request method from Dio
inherited
toString ()
→ String
A string representation of this object.
inherited
update (T entity )
→ Future <T >
url (String path )
→ String
inherited
truesight_flutter 2405.28.1