XMenuPositionStyle constructor

const XMenuPositionStyle({
  1. bool isTopSpace = false,
  2. bool isLeftSpace = false,
  3. bool isRightSpace = false,
  4. bool isBottomSpace = false,
  5. double? top,
  6. double? left,
  7. double? right,
  8. double? bottom,
  9. AlignmentGeometry? alignment,
  10. double? width,
})

Implementation

const XMenuPositionStyle({
  this.isTopSpace = false,
  this.isLeftSpace = false,
  this.isRightSpace = false,
  this.isBottomSpace = false,
  this.top,
  this.left,
  this.right,
  this.bottom,

  /// Alignment calculate by [XMenuPositionStyle.top] and [XMenuPositionStyle.left]
  this.alignment,

  /// Default value is 40% of the screen width
  this.width,
});