showToastCustom static method

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

Display a custom Toast message.

Implementation

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