handleError static method

dynamic handleError(
  1. APIException? error
)

Implementation

static handleError(APIException? error) {
  Fluttertoast.showToast(msg: error?.message ?? ErrorMessages.networkGeneral);
}