onErrorCallback method Null safety

GeneralResponseCallback onErrorCallback(
  1. BuildContext context
)

Implementation

static GeneralResponseCallback onErrorCallback(BuildContext context) =>
    (GeneralResponse generalResponse) =>
        ApUtils.showToast(context, generalResponse.message);