toastWarning method

void toastWarning(
  1. String message,
  2. BuildContext context
)

Implementation

void toastWarning(String message, BuildContext context) {
  FlutterToastr.show(
    message,
    context,
    duration: 3,
    textStyle: const TextStyle(
      color: Colors.white,
      fontSize: 16.0,
    ),
    backgroundColor: Colors.orange,
  );
}