GlassMenuLabel constructor

const GlassMenuLabel({
  1. String? title,
  2. Widget? child,
  3. TextStyle? style,
  4. double height = 30.0,
  5. double horizontalPadding = 16.0,
  6. AlignmentGeometry? alignment,
  7. Key? key,
})

Creates a glass menu label.

Implementation

const GlassMenuLabel({
  this.title,
  this.child,
  this.style,
  this.height = 30.0,
  this.horizontalPadding = 16.0,
  this.alignment,
  super.key,
}) : assert(title != null || child != null,
          'Either title or child must be provided');