showTalawaErrorSnackBar method
void showTalawaErrorSnackBar (String errorMessage, MessageType messageType, {Duration duration = const Duration(seconds: 2)})
Implementation
void showTalawaErrorSnackBar(
String errorMessage,
MessageType messageType, \{
Duration duration = const Duration(seconds: 2),
\}) \{
ScaffoldMessenger.of(navigatorKey.currentContext!).showSnackBar(
SnackBar(
padding: EdgeInsets.zero,
content: TalawaErrorSnackBar(
messageType: messageType,
errorMessage: errorMessage,
),
backgroundColor: const Color.fromRGBO(65, 65, 66, 1),
),
);
\}