errorMsg method
Implementation
Future<Widget> errorMsg(BuildContext context, String error, {String? animtaion}) async {
return await dialogMessage(
context,
title: Lottie.asset(
animtaion ?? "packages/event_crew/assets/animation/failed.json",
repeat: true,
reverse: true,
height: 80
),
content: MyText(text: error, fontWeight: FontWeight.w500, left: 10, right: 10,)
) ?? Container();
}