AsukaSnackbar.message constructor
Creates a subclass of AsukaSnackbar called AsukaSnackbar.Message
passing the key
, content
, setting the color
to Color(0xff484848).
This AsukaSnackbar was created to with the purpose of supply the user with a message Snackbar
.
Example:
ElevatedButton(
onPressed: () {
asuka.AsukaSnackbar.message("Message").show();
},
child: const Text("Show message"),
)
This code generates an ElevatedButton, when pressed, it calls asuka.AsukaSnackbar.message("Message").show()
Implementation
factory AsukaSnackbar.message(
String content, {
Key? key,
double? width,
double elevation = 2,
}) =>
AsukaSnackbar._(
key,
content,
messageConfig.color,
width: width,
elevation: elevation,
);