toast static method

dynamic toast(
  1. String message,
  2. bool isShortLength
)

Displays a toast message on the device.

message is the message to display. isShortLength specifies whether the toast should be short or long in duration.

Implementation

static toast(String message, bool isShortLength) {
  _channel.invokeMethod(
    "toast",
    {
      "message": message,
      "short_length": isShortLength,
    },
  );
}