top static method

void top(
  1. dynamic title,
  2. dynamic message
)

Implementation

static void top(title, message) {
  Get.snackbar(title, message,
                    backgroundColor: backColor,
                    margin : const EdgeInsets.all(20),
                    snackPosition: SnackPosition.TOP,
                  );
}