show method
void
show(
- String message, {
- ToastLength? toastLength,
- Duration? toastDuration,
- int? timeInSec,
- ToastGravity? gravity,
- double? fontSize,
- Color? backgroundColor,
- Color? textColor,
override
Implementation
@override
void show(String message, {
ToastLength? toastLength,
Duration? toastDuration,
int? timeInSec,
ToastGravity? gravity,
double? fontSize,
Color? backgroundColor,
Color? textColor
}) {
if (message.isEmpty) {
return;
}
_fToast.showToast(
toastDuration: toastDuration ?? toastOf(toastLength ?? ToastConfig.defaultToastLength),
gravity: gravity ?? ToastConfig.defaultGravity,
child: createToastChild(message, fontSize: fontSize, backgroundColor: backgroundColor, textColor: textColor),
);
}