HttpNotSuccess.throwError constructor
HttpNotSuccess.throwError(
- Object e,
- StackTrace s
Implementation
factory HttpNotSuccess.throwError(
final Object e, final StackTrace s
) => HttpNotSuccess(
(e as DioException).response?.statusCode ?? 0,
(( e.response?.data ?? {
'error': 'Servidor caido o error en el servidor'
}) as Map<String, dynamic>)['error']
);