Browse Source

Added a comment

ashilkn 2 years ago
parent
commit
57f689abb1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/ui/components/menu_item_widget/menu_item_widget.dart

+ 4 - 0
lib/ui/components/menu_item_widget/menu_item_widget.dart

@@ -54,6 +54,10 @@ class MenuItemWidget extends StatefulWidget {
 
   final bool surfaceExecutionStates;
 
+  ///To show success state even when execution time < debouce time, set this
+  ///flag to true. If the loading state needs to be shown and success state not,
+  ///set the showOnlyLoadingState flag to true, setting this flag to false won't
+  ///help.
   final bool alwaysShowSuccessState;
 
   const MenuItemWidget({