success static method

Future<bool?> success({
  1. required String msg,
  2. Color textColor = Colors.white,
  3. ToastGravity? gravity,
  4. Toast? toastLength,
})

Implementation

static Future<bool?> success({
  required String msg,
  Color textColor = Colors.white,
  ToastGravity? gravity,
  Toast? toastLength,
}) =>
    toast(
      msg: msg,
      backgroundColor: BasicAppColors.green,
      textColor: textColor,
      gravity: gravity,
      toastLength: toastLength,
    );