showToastCustom static method

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

Display a custom Toast message. Use id to specify a custom toast style registered via Nylo.addToastNotifications.

Implementation

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