showToastCustom static method

dynamic showToastCustom(
  1. String state, {
  2. String? title,
  3. required String description,
  4. ToastNotificationStyleType? style,
})

Display a custom Toast message.

Implementation

static showToastCustom(String state,
    {String? title,
    required String description,
    ToastNotificationStyleType? style}) {
  _updateState(state, "toast-custom", {
    "title": title ?? "",
    "description": description,
    "style": style ?? ToastNotificationStyleType.custom
  });
}