onFailureCallback method Null safety

DioErrorCallback onFailureCallback(
  1. BuildContext context
)

Implementation

static DioErrorCallback onFailureCallback(BuildContext context) =>
    (DioError dioError) => ApUtils.showToast(context, dioError.i18nMessage);