AsukaMaterialBanner.info constructor

AsukaMaterialBanner.info(
  1. String content, {
  2. Key? key,
  3. List<Widget>? actions,
  4. double elevation = 2,
  5. Duration? duration = const Duration(seconds: 4),
})

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

Example:

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

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

Implementation

factory AsukaMaterialBanner.info(
  String content, {
  Key? key,
  List<Widget>? actions,
  double elevation = 2,
  Duration? duration = const Duration(seconds: 4),
}) =>
    AsukaMaterialBanner._(
      key,
      content,
      infoConfig.color,
      actions: actions,
      icon: infoConfig.icon,
      elevation: elevation,
      duration: duration,
    );