BaseNavigationBarAction constructor

const BaseNavigationBarAction({
  1. CNSymbol? icon,
  2. String? label,
  3. VoidCallback? onPressed,
  4. Color? tint,
  5. double? padding,
  6. double? labelSize = 15,
  7. double? iconSize = 16,
  8. String? badgeValue,
  9. Color? badgeColor,
})

Implementation

const BaseNavigationBarAction({
  this.icon,
  this.label,
  this.onPressed,
  this.tint,
  this.padding,
  this.labelSize = 15,
  this.iconSize = 16,
  this.badgeValue,
  this.badgeColor,
})  : popupMenuItems = null,
      onPopupMenuSelected = null,
      _isFixedSpace = false,
      _isFlexibleSpace = false,
      _usePopupMenuButton = false,
      _spaceWidth = null,
      _isImageAction = false,
      _materialImage = null,
      _iosImage = null,
      _imageWidth = null,
      _imageHeight = null,
      assert(icon != null || label != null,
          'Either icon or label must be provided');