GrockMenuItem constructor

GrockMenuItem({
  1. String? text,
  2. Widget? leading,
  3. Widget? trailing,
  4. Widget? child,
  5. Widget? body,
  6. TextStyle? textStyle,
  7. void onTap()?,
  8. bool isTapped = false,
})

Implementation

GrockMenuItem({
  /// [text] is the text of the menu item
  this.text,

  /// [leading] is the leading widget of the menu item
  this.leading,

  /// [trailing] is the trailing widget of the menu item
  this.trailing,

  /// [child] is the child widget of the menu item
  this.child,

  /// [body] is the body widget of the menu item
  this.body,

  /// [textStyle] is the text style of the menu item
  this.textStyle,

  /// [onTap] is the function of the menu item
  this.onTap,

  /// [isTapped] is the state of the menu item
  this.isTapped = false,
});