show static method
void
show(})
Implementation
static void show(BuildContext? context, String msg,
{int? duration = 1,
int? gravity = 0,
Color backgroundColor = const Color(0xAA000000),
textStyle = const TextStyle(fontSize: 15, color: Colors.white),
double backgroundRadius = 20,
bool? rootNavigator,
Border? border}) {
///
/// 上下文不能为空
///
if (context == null) {
throw Exception(
'Context is null, please call ToastContext.init(context) first');
}
ToastView.dismiss();
ToastView.createView(msg, context, duration, gravity, backgroundColor,
textStyle, backgroundRadius, border, rootNavigator);
}