showToast method

dynamic showToast(
  1. dynamic args
)

it to showWebToast

Implementation

showToast(args) {
  String bgColor = args['webBgColor'] ?? "linear-gradient(to right, #00b09b, #96c93d)";

  String textColor = args['textcolor'];

  int duration = args['duration'] == null ? 1000 : (int.parse(args['duration'].toString()));

  bool showClose = args['webShowClose'] ?? false;
  showWebToast(args['msg'], args['gravity'],
      bgcolor: bgColor, textColor: textColor, duration: duration, showClose: showClose);
}