toast static method

void toast(
  1. bool success,
  2. String msg
)

Implementation

static void toast(bool success, String msg)
{
  if (success) {
    successToast(msg);
  }
  else {
    errorToast(msg);
  }
}