init method

void init({
  1. bool? usehttp,
  2. bool? showSnackbar,
})

by default it will use http and show snackbar

Implementation

void init({bool? usehttp, bool? showSnackbar}) {
  useHttp = usehttp ?? true;
  showSnackbar = showSnackbar ?? true;
}