warning static method

void warning(
  1. String text, {
  2. Duration? length,
  3. BrnToastGravity? gravity,
})

Implementation

static void warning(
  String text, {
  Duration? length,
  BrnToastGravity? gravity,
}) {
  Toast.show(
    text,
    preIcon: Image.asset(
      'assets/icons/ic_warning.png',
      package: pluginPackageName,
      width: 20,
      height: 20,
    ),
    length: length,
    gravity: gravity,
  );
}