show static method

void show(
  1. String text, {
  2. Image? preIcon,
  3. Duration? length,
  4. BrnToastGravity? gravity,
})

Implementation

static void show(
  String text, {
  Image? preIcon,
  Duration? length,
  BrnToastGravity? gravity,
}) {
  BrnToast.show(
    text,
    Get.context!,
    preIcon: preIcon,
    duration: length,
    gravity: gravity ?? BrnToastGravity.bottom,
    verticalOffset: 80.h,
  );
}