showToast function

dynamic showToast(
  1. String? message,
  2. BuildContext? context
)

Implementation

showToast(String? message, BuildContext? context) {
  FocusScope.of(context!).requestFocus(FocusNode());
  Fluttertoast.showToast(
      msg: message.toString(),
      toastLength: Toast.LENGTH_LONG,
      gravity: ToastGravity.BOTTOM,
      timeInSecForIosWeb: 1,
      backgroundColor: black,
      textColor: white,
      fontSize: 16.0);
}