successMessage method

dynamic successMessage({
  1. dynamic context,
  2. dynamic message,
})

Implementation

successMessage({context, message}) {
  return ScaffoldMessenger.of(context).showSnackBar(SnackBar(
    backgroundColor: mediGreen,
    behavior: SnackBarBehavior.floating,
    shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.all(Radius.circular(12))),
    elevation: 6.0,
    content: Text(
      "${message}",
      style: TextStyle(
          fontFamily: 'Nunito',
          color: Colors.white,
          fontWeight: FontWeight.w500,
          fontSize: 16),
    ),
  ));
}