init static method

dynamic init({
  1. required BuildContext? contextGetBlock(),
  2. bool shouldGiveupToastCheck()?,
})

Implementation

static init({
  required BuildContext? Function() contextGetBlock,
  bool Function()? shouldGiveupToastCheck,
}) {
  _contextGetBlock = contextGetBlock;
  _shouldGivupToastCheck = shouldGiveupToastCheck;
}