AsukaSnackbar.info constructor

AsukaSnackbar.info(
  1. String content, {
  2. Key? key,
  3. SnackBarAction? snackBarAction,
  4. double? width,
  5. double elevation = 2,
})

Creates a subclass of AsukaSnackbar called AsukaSnackbar.Info passing the key, content, setting the color to Color(0xff3196DA), an action and the icon to Icons.help. This AsukaSnackbar was created to with the purpose of supply the user with an info Snackbar.

Example:

ElevatedButton(
onPressed: () {
  asuka.AsukaSnackbar.info("Info").show();
},
child: const Text("Show Info"),
)

This code generates an ElevatedButton, when pressed, it calls asuka.AsukaSnackbar.info("Info").show()

Implementation

factory AsukaSnackbar.info(
  String content, {
  Key? key,
  SnackBarAction? snackBarAction,
  double? width,
  double elevation = 2,
}) =>
    AsukaSnackbar._(
      key,
      content,
      infoConfig.color,
      action: snackBarAction,
      icon: infoConfig.icon,
      width: width,
      elevation: elevation,
    );