chore: Avoid unnecessary lambdas
This commit is contained in:
parent
5283d0fcc8
commit
a0a03941c2
13 changed files with 19 additions and 32 deletions
|
|
@ -25,7 +25,7 @@ class PollWidget extends StatelessWidget {
|
|||
});
|
||||
|
||||
void _endPoll(BuildContext context) =>
|
||||
showFutureLoadingDialog(context: context, future: () => event.endPoll());
|
||||
showFutureLoadingDialog(context: context, future: event.endPoll);
|
||||
|
||||
void _toggleVote(BuildContext context, String answerId, int maxSelection) {
|
||||
final userId = event.room.client.userID!;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue