success static method

void success(
  1. String message
)

Show Success Toast

Implementation

static void success(String message) {
  try {
    if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) {
      jLog.i('JMessage.success: $message');
      return;
    }
    Fluttertoast.showToast(
      msg: message,
      toastLength: Toast.LENGTH_SHORT,
      gravity: ToastGravity.BOTTOM,
      backgroundColor: Colors.green.withAlpha(230),
      textColor: Colors.white,
      fontSize: 16.0,
      // fontAsset: 'assets/fonts/Tajawal-Medium.ttf',
    );
  } catch (ex) {
    jLog.e('JMessage.success: $ex');
  }
}