error static method

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

Implementation

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