const constructure
This commit is contained in:
@@ -30,7 +30,7 @@ class AuthRemoteDataProvider {
|
||||
|
||||
if (response.data['code'] == 401) {
|
||||
return DC.error(
|
||||
AuthFailure.serverError(
|
||||
const AuthFailure.serverError(
|
||||
ApiFailure.unauthorized('Incorrect email or password'),
|
||||
),
|
||||
);
|
||||
@@ -52,7 +52,7 @@ class AuthRemoteDataProvider {
|
||||
);
|
||||
|
||||
if (response.data['success'] == false) {
|
||||
return DC.error(AuthFailure.unexpectedError());
|
||||
return DC.error(const AuthFailure.unexpectedError());
|
||||
}
|
||||
|
||||
return DC.data(unit);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// ignore_for_file: prefer_const_constructors
|
||||
|
||||
part of '../auth_dtos.dart';
|
||||
|
||||
@freezed
|
||||
|
||||
Reference in New Issue
Block a user