UserApi class

Inheritance

Constructors

UserApi.new({required PreferencesSettings settings})

Properties

baseUrl Future<String>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings PreferencesSettings
finalinherited

Methods

cleanEntity(Map<String, dynamic> params) Map<String, dynamic>
override
createEntity(Map<String, dynamic> params) Future<UserResponse>
delete(String endpoint, {bool includeToken = true}) Future<Response>
inherited
deletePhoto(Map<String, dynamic> params) Future<NoContentResponse>
get(String endpoint, {bool includeToken = true}) Future<Response>
inherited
getEntitiesByParams(Map<String, dynamic> params) Future<UsersReponse>
getEntityById(Map<String, dynamic> params) Future<UserResponse>
getHeaders({bool includeToken = true}) Map<String, String>
inherited
getUrl({String? endUrl}) Future<Uri>
inherited
getUserRoles(Map<String, dynamic> params) Future<RolesResponse>
getUserRoutes() Future<RoutesResponse>
getUsersDisponiveis(Map<String, dynamic> params) Future<UsersReponse>
handleFilters(String url, Map<String, dynamic> filters) String
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseUrl(String url) Uri
inherited
post(String endpoint, {bool includeToken = true, Map<String, dynamic>? body, Map<String, String>? headers}) Future<Response>
inherited
put(String endpoint, {bool includeToken = true, Map<String, dynamic>? body}) Future<Response>
inherited
restorePassword(Map<String, dynamic> params) Future<NoContentResponse>
toString() String
A string representation of this object.
inherited
updateEntity(Map<String, dynamic> params) Future<UserResponse>
updatePassword(Map<String, dynamic> params) Future<NoContentResponse>
updateSettings(Map<String, dynamic> params) Future<NoContentResponse>
uploadPhoto(Map<String, dynamic> params) Future<ImageResponse>

Operators

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