chore(ui): fix lint.

Signed-off-by: Sahil Kumar <xdsahil@gmail.com>
This commit is contained in:
Sahil Kumar
2023-08-17 13:54:38 +05:30
parent b34f725ff1
commit d684e74b8c
@@ -162,8 +162,7 @@ class BottomRow extends StatelessWidget {
msg = context.translations.threadReplyCountText(replyCount);
}
// ignore: prefer_function_declarations_over_variables
final _onThreadTap = () async {
Future<void> _onThreadTap() async {
try {
var message = this.message;
if (showInChannel) {
@@ -172,12 +171,9 @@ class BottomRow extends StatelessWidget {
}
return onThreadTap!(message);
} catch (e, stk) {
print(e);
print(stk);
// ignore: avoid_returning_null_for_void
return null;
debugPrint('Error while fetching message: $e, $stk');
}
}
};
const usernameKey = Key('username');