From 56e7d45cb8e4f590316fb8f23f0274cca92913cc Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Mon, 31 May 2021 14:28:49 +0530 Subject: [PATCH] analysis fixes --- .../lib/src/channel_list_view.dart | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/stream_chat_flutter/lib/src/channel_list_view.dart b/packages/stream_chat_flutter/lib/src/channel_list_view.dart index 1478c745..049a51af 100644 --- a/packages/stream_chat_flutter/lib/src/channel_list_view.dart +++ b/packages/stream_chat_flutter/lib/src/channel_list_view.dart @@ -662,14 +662,21 @@ class _ChannelListViewState extends State { } } +/// Class for slidable action class SwipeAction { - Color? color; - Widget iconWidget; - VoidCallback? onTap; - + /// Constructor for creating [SwipeAction] SwipeAction({ this.color, required this.iconWidget, this.onTap, }); + + /// Background color of action + Color? color; + + /// Widget to display as icon + Widget iconWidget; + + /// Callback when icon is tapped + VoidCallback? onTap; }